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++] Pausing the file...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Acim
Grandmaster Cheater Supreme
Reputation: 0

Joined: 04 Jun 2007
Posts: 1948
Location: If anyone has a GMS DK and they don't need it I'll have it!!

PostPosted: Sat Nov 03, 2007 6:10 am    Post subject: [C++] Pausing the file... Reply with quote

K, I finally figured out how to use
Code:
SYSTEM("PAUSE");
to stop my file exiting, but now I wanna make it so it doesnt say "Press any key to continue...". Is there a way to do that, like maybe
Code:
SYSTEM("PAUSE") <nul
or something? I know in .bat files its pause > nul but not with C++. Crying or Very sad [/code]
_________________
I'm alive and well, but I quit CEF for a while. Legitly playing since Novemberish 07. Starting hacking October 06.
Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Sat Nov 03, 2007 6:16 am    Post subject: Reply with quote

Code:
std::cin.ignore();
std::cin.sync();


If you really want to do it that way
Code:
::system("pause > nul ");
Back to top
View user's profile Send private message
Acim
Grandmaster Cheater Supreme
Reputation: 0

Joined: 04 Jun 2007
Posts: 1948
Location: If anyone has a GMS DK and they don't need it I'll have it!!

PostPosted: Sat Nov 03, 2007 6:23 am    Post subject: Reply with quote

Thanks so much! It works. Very Happy
_________________
I'm alive and well, but I quit CEF for a while. Legitly playing since Novemberish 07. Starting hacking October 06.
Back to top
View user's profile Send private message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Sat Nov 03, 2007 9:51 am    Post subject: Reply with quote

Just compile it with the "Release" option instead of the "Debug" option Wink
Back to top
View user's profile Send private message
Hackerdevelopment
Advanced Cheater
Reputation: 0

Joined: 11 Oct 2007
Posts: 55

PostPosted: Sat Nov 03, 2007 10:19 am    Post subject: Reply with quote

Try opening the program with ms-dos.
_________________
Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Sat Nov 03, 2007 2:39 pm    Post subject: Reply with quote

Acim wrote:
Thanks so much! It works. :D
np.

assaf84 wrote:
Just compile it with the "Release" option instead of the "Debug" option :wink:
The config doesn't have any effect on the behavior of the cmd prompt.

Hackerdevelopment wrote:
Try opening the program with ms-dos.
Only WXP's prompt closes like that. Installing MS-DOS would be too much hassle for this case. You'd have to boot your comp and select MS-DOS etc. PS. You meant the command prompt, didn't you?
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