Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


C++ Sleep() and clean screen problems...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Engineer
Expert Cheater
Reputation: 1

Joined: 25 Nov 2007
Posts: 170

PostPosted: Sun Jan 06, 2008 11:14 am    Post subject: C++ Sleep() and clean screen problems... Reply with quote

Im making a program that shows a counter and im trying to make it look animated.

i coded a basic thing:

Code:

secup:
Sleep(1000);
Secs++;
cout<<" "<<Secs<<endl;
goto cleanscrn;

cleanscrn:
Sleep(1001);
system("cls");
goto secup;


But later i realised that the clean was afecting the Counter...
If i remove Cleanscreen from cleanscrn, and paste it in Secup, It will clean my screen right after it shows the time...

Wath can i do?
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Sun Jan 06, 2008 11:37 am    Post subject: Reply with quote

why dont u just do a for loop?

Code:
for (int Sec = 0; Sec < 10; Sec++)
                {
                   cout << Sec;
                   Sleep(1000);
                   system("cls");
                }

_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites