i want use if satement, to do something for the one time, example:
main(){ char k; k=0;
while(1){
if(k==0){ printfLCD("please only one time\n"); k=1; }//end if
printfLCD("test message\n");
}//end while }//end main
but it isnt work, program enters the if statement infinite time. where is the error?, there is anyything about keilc51, which is i dont know? i use upsd3434 8051 microcontroler, sory for my nglish