hi,
I need use clock() (or similar but not QT functions!) to do this:
int done =1
while (done) {
clearScreen()
if (anyPressedKey) done=0;
float posy = clock()/20;
mySetPos(10, posy-40);
print ("HELLO EVERY BODY ");
if (posy>600) posy -= 600;
}
int done =1
while (done) {
clearScreen()
if (anyPressedKey) done=0;
float posy = clock()/20;
mySetPos(10, posy-40);
print ("HELLO EVERY BODY ");
if (posy>600) posy -= 600;
}
To copy to clipboard, switch view to plain text mode
I need the text go down and when it reach 600 it wait a while and restart from start point...Any hints?
this code doesn't work. and float posy could reach its high bound.......
Is there a way to reset and/or stop the clock() counter????
Thanks
Bookmarks