1 #include <REGX52.H> 2 void delay_and_check_1(void); 3 void delay_and_check(void); 4 void check_button_pres(void); 5 void display_value(void); 6 #define column 000001111; 7 unsigned char store=0x00; 8 unsigned char count=0x00; 9 void main(void){ 10 while (1){ 11 P0 = column; 12 while (P0 == column){} 13 check_button_pres(); } }
Don't put the semi-colon here at the end #define column 000001111;
Slapping semi-colons on the end of every line shows minimal grasp of the C language, please review K&R or similar book to understand appropriate usage
I, also, doubt you want to define column as octal 1111
I really think that some questions should not be given such direct answers. Since the op can't even be bothered to give the question, i really believe it doesnt deserve the aprecise answers supplied.
Give a man a fish and feed him for a day. Don't teach a man to fish...and feed yourself. He's a grown man and fishing is not that hard.
Give a man a fish and feed him for a day. Don't teach a man to fish...and feed yourself I think in this case: "give a man a log and he is warm for a day, set him on fire and he is warm for the rest of his life" is a better saying
View all questions in Keil forum