16-11-2008, 06:06 AM | #11 | ||
Join Date: May 2005
Location: Nitra, Slovakia
Posts: 6,533
|
sorry i was quite sh*tfaced yesterday when i wrote that. do it, you won't lose anything from trying
why won't you search for the program name, to see where it has been compiled? (i never worked in devc++) then you will be able to run the program via running cmd, so it doesn't close automatically i think there were also options about this closing cmd after program in windows
__________________
|
||
|
|
17-11-2008, 06:44 AM | #12 | ||
Join Date: Jan 2008
Location: Christchurch, New Zealand
Posts: 1,044
|
I think it just compiles it to the memory and runs it from there. You need to build it to create an EXE.
|
||
|
|
28-11-2008, 06:53 AM | #13 | ||
Join Date: Jun 2008
Location: Dresden, Germany
Posts: 4
|
You need a wait command like system("pause");
|
||
|
|
29-11-2008, 07:55 AM | #14 | ||
Join Date: Jan 2008
Location: Christchurch, New Zealand
Posts: 1,044
|
Exactly what I said just after he had that problem.
|
||
|
|
17-12-2008, 11:00 AM | #15 | ||
Join Date: Jun 2008
Location: Dresden, Germany
Posts: 4
|
|
||
|
|
19-12-2008, 02:26 PM | #16 | ||
Join Date: Dec 2008
Location: Alsasua, Spain
Posts: 9
|
Quick thought, why not get yourself visual studio - might save you time setting up your compiler and all.
|
||
|
|
21-12-2008, 05:23 PM | #17 | ||
Join Date: Feb 2006
Location: Velika Gorica, Croatia
Posts: 117
|
I think that #include<cstdlib> is better for C++ if you're using system() order.
Or you can do the old trick with char z; cin >> z; on the end of the program, you can probably guess how that one works... |
||
|
|
21-12-2008, 09:51 PM | #18 | ||
Join Date: Jan 2008
Location: Christchurch, New Zealand
Posts: 1,044
|
Quote:
cout << "Press enter to continue..." |
||
|
|
24-12-2008, 10:06 PM | #19 | ||
Join Date: Jun 2008
Location: Dresden, Germany
Posts: 4
|
you can also use the getch() function
#include <conio.h> int main() { ... cout<<"press any key"; getch(); return 0; } |
||
|
|
15-04-2009, 05:31 PM | #20 | ||
Join Date: Apr 2009
Location: Selangor, Malaysia
Posts: 8
|
you can also use
... cin.get(); return 0; } that did the work for me.. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Discworld & Fable halp! | Fubb | Troubleshooting | 5 | 30-05-2008 08:26 AM |
Halp! | Marvin | Old Suggestions | 11 | 14-12-2007 08:45 PM |
|
|
||
  |