Explanation of code

Closed
dev - Updated on Apr 4, 2018 at 05:15 PM
BunoCS
Posts
15277
Registration date
Monday July 11, 2005
Status
Moderator
Last seen
July 26, 2022
- 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 reply

BunoCS
Posts
15277
Registration date
Monday July 11, 2005
Status
Moderator
Last seen
July 26, 2022
1,541
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