| View previous topic :: View next topic |
| Author |
Message |
Itachi08 Expert Cheater
Reputation: 0
Joined: 03 Nov 2006 Posts: 101
|
Posted: Fri May 25, 2007 11:35 pm Post subject: [Request] C++ help.. |
|
|
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 |
|
 |
compactwater I post too much
Reputation: 8
Joined: 02 Aug 2006 Posts: 3923
|
|
| Back to top |
|
 |
Itachi08 Expert Cheater
Reputation: 0
Joined: 03 Nov 2006 Posts: 101
|
Posted: Sat May 26, 2007 12:40 am Post subject: |
|
|
uhh didn't find any exercises :O
a link?
_________________
|
|
| Back to top |
|
 |
Icos Grandmaster Cheater
Reputation: 0
Joined: 12 May 2007 Posts: 524
|
Posted: Sat May 26, 2007 5:52 am Post subject: |
|
|
| system("pause"); ?
|
|
| Back to top |
|
 |
Robotex Master Cheater
Reputation: 0
Joined: 05 Sep 2006 Posts: 378 Location: The pizza country!
|
Posted: Sat May 26, 2007 7:24 am Post subject: |
|
|
start -> run -> cmd /k <path to your exe>
_________________
ASM/C++ Coder
Project Speranza lead developer |
|
| Back to top |
|
 |
DeltaFlyer Grandmaster Cheater
Reputation: 0
Joined: 22 Jul 2006 Posts: 666
|
Posted: Sat May 26, 2007 8:50 am Post subject: |
|
|
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 |
|
 |
.DreaMz. Advanced Cheater
Reputation: 0
Joined: 23 May 2007 Posts: 52 Location: General Programming
|
Posted: Tue May 29, 2007 1:42 pm Post subject: |
|
|
There are two ways that I suggest you follow.
1) 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 |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Tue May 29, 2007 1:43 pm Post subject: |
|
|
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 |
|
 |
.DreaMz. Advanced Cheater
Reputation: 0
Joined: 23 May 2007 Posts: 52 Location: General Programming
|
Posted: Tue May 29, 2007 1:50 pm Post subject: |
|
|
| 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 |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Tue May 29, 2007 2:14 pm Post subject: |
|
|
| .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 |
|
 |
.DreaMz. Advanced Cheater
Reputation: 0
Joined: 23 May 2007 Posts: 52 Location: General Programming
|
Posted: Tue May 29, 2007 2:17 pm Post subject: |
|
|
| 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 |
|
 |
DeltaFlyer Grandmaster Cheater
Reputation: 0
Joined: 22 Jul 2006 Posts: 666
|
Posted: Tue May 29, 2007 2:53 pm Post subject: |
|
|
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 |
|
 |
|