hi I do this and seem ok;
int posy = ((int) (clock()/20)) %600;
int posy = ((int) (clock()/20)) %600;
To copy to clipboard, switch view to plain text mode
But problem is that when posy reach 600, the print should be later of 5 seconds;
I can code this:
if (posy ==0)
for (int i =0; i<1000; ++i) ;
if (posy ==0)
for (int i =0; i<1000; ++i) ;
To copy to clipboard, switch view to plain text mode
but this has different behavior on different machines and more imposrtant: posy GOES ON......(so next print don't print at '0' point but '0' plus something...)
Are u understanding this problem? Any hints?Thanks...
Bookmarks