Explanation of code

Closed
dev - 4 Apr 2018 à 10:48
BunoCS Posts 436 Registration date Monday 11 July 2005 Status Moderator Last seen 18 May 2026 - 4 Apr 2018 à 10:56
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 436 Registration date Monday 11 July 2005 Status Moderator Last seen 18 May 2026 1,534
4 Apr 2018 à 10:56
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
}
}