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 


[Request] C++ help..

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

Joined: 03 Nov 2006
Posts: 101

PostPosted: Fri May 25, 2007 11:35 pm    Post subject: [Request] C++ help.. Reply with quote

I have a problem when i open programs i compiled to exe
i see the window for like 1 sec and it closes...(same when i open Dhttpd for maple)..

_________________


Last edited by Itachi08 on Sat May 26, 2007 1:21 am; edited 1 time in total
Back to top
View user's profile Send private message
compactwater
I post too much
Reputation: 8

Joined: 02 Aug 2006
Posts: 3923

PostPosted: Sat May 26, 2007 12:09 am    Post subject: Reply with quote

www.bloodshed.net
Back to top
View user's profile Send private message
Itachi08
Expert Cheater
Reputation: 0

Joined: 03 Nov 2006
Posts: 101

PostPosted: Sat May 26, 2007 12:40 am    Post subject: Reply with quote

uhh didn't find any exercises :O
a link?

_________________
Back to top
View user's profile Send private message
Icos
Grandmaster Cheater
Reputation: 0

Joined: 12 May 2007
Posts: 524

PostPosted: Sat May 26, 2007 5:52 am    Post subject: Reply with quote

system("pause"); ?
Back to top
View user's profile Send private message
Robotex
Master Cheater
Reputation: 0

Joined: 05 Sep 2006
Posts: 378
Location: The pizza country!

PostPosted: Sat May 26, 2007 7:24 am    Post subject: Reply with quote

start -> run -> cmd /k <path to your exe>
_________________

ASM/C++ Coder
Project Speranza lead developer
Back to top
View user's profile Send private message
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Sat May 26, 2007 8:50 am    Post subject: Reply with quote

Add getchar(); right before the return in your main.
_________________

Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for?
Back to top
View user's profile Send private message
.DreaMz.
Advanced Cheater
Reputation: 0

Joined: 23 May 2007
Posts: 52
Location: General Programming

PostPosted: Tue May 29, 2007 1:42 pm    Post subject: Reply with quote

There are two ways that I suggest you follow.

1)
Code:
system("pause");
at the end of your source.

2)Put your compiled *.exe in your C: and go to Start -> Run -> Compiled.exe -> Enter

_________________
For a person to think that calling you the name your mom gave you at birth is disrespectful is beyond belief.
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Tue May 29, 2007 1:43 pm    Post subject: Reply with quote

system("pause") is bad for a number of reasons, the two main reasons being:

1. It is windows-specific, which would break an otherwise portable program.
2. You are calling the system to do something you could do yourself.
Back to top
View user's profile Send private message
.DreaMz.
Advanced Cheater
Reputation: 0

Joined: 23 May 2007
Posts: 52
Location: General Programming

PostPosted: Tue May 29, 2007 1:50 pm    Post subject: Reply with quote

appalsap wrote:
system("pause") is bad for a number of reasons, the two main reasons being:

1. It is windows-specific, which would break an otherwise portable program.
2. You are calling the system to do something you could do yourself.


It would be more efficient for a beginner to start to use this at a beginning stage, then progress to a higher level of not needing it.

_________________
For a person to think that calling you the name your mom gave you at birth is disrespectful is beyond belief.
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Tue May 29, 2007 2:14 pm    Post subject: Reply with quote

.DreaMz. wrote:
It would be more efficient for a beginner to start to use this at a beginning stage, then progress to a higher level of not needing it.


uh, they can use getch() which is less typing, cross platform (stdio) and has the exact same functionality
Back to top
View user's profile Send private message
.DreaMz.
Advanced Cheater
Reputation: 0

Joined: 23 May 2007
Posts: 52
Location: General Programming

PostPosted: Tue May 29, 2007 2:17 pm    Post subject: Reply with quote

appalsap wrote:
.DreaMz. wrote:
It would be more efficient for a beginner to start to use this at a beginning stage, then progress to a higher level of not needing it.


uh, they can use getch() which is less typing, cross platform (stdio) and has the exact same functionality


Most tutorials and guides do not introduce that function untill later on.

_________________
For a person to think that calling you the name your mom gave you at birth is disrespectful is beyond belief.
Back to top
View user's profile Send private message
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Tue May 29, 2007 2:53 pm    Post subject: Reply with quote

and it's being introduced right now...
_________________

Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for?
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