Code:
#include"AT892051.h" #define ON 1 #define Off 0 sbit congtac = P3^0; unsigned char double_it(unsigned char x) { return(2*x); } unsigned char inc_by2(unsigned char x) { return(x+2); } main() { unsigned char first , second; first =P1; if(congtac == ON) second=double_it(first); else second=inc_by2(first); for(;;) }
syntax error near ' } ' tại dòng for( ;; )
Comment