Explanation of code

Closed
dev - Updated on Apr 4, 2018 at 05:15 PM
BunoCS Posts 15476 Registration date Monday July 11, 2005 Status Moderator Last seen May 3, 2024 - Apr 4, 2018 at 10:56 AM
Hello,
while(key!=27)
{

while(!kbhit()){
putimage(l,t,ball,XOR_PUT);
delay(5);
putimage(l,t,ball,XOR_PUT);
can you explain the above lines of code

1 response

BunoCS Posts 15476 Registration date Monday July 11, 2005 Status Moderator Last seen May 3, 2024 1,534
Apr 4, 2018 at 10:56 AM
Hello,

What is the programming language?
What can I say is:

while (user has not hit the Escape key) {
while (user has not hit any key) {
put image somewhere
wait 5 (milli?)seconds
put image somewhere
}
}
0