![]() |
#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
__________________
![]() |
||
![]() ![]() |
|
![]() |
#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.
|
||
![]() ![]() |
|
![]() |
#13 | ||
![]() ![]() ![]() ![]() Join Date: Jun 2008
Location: Dresden, Germany
Posts: 4
|
![]() You need a wait command like system("pause");
|
||
![]() ![]() |
|
![]() |
#14 | ||
![]() ![]() ![]() Join Date: Jan 2008
Location: Christchurch, New Zealand
Posts: 1,044
|
![]() Exactly what I said just after he had that problem.
|
||
![]() ![]() |
|
![]() |
#15 | ||
![]() ![]() ![]() ![]() Join Date: Jun 2008
Location: Dresden, Germany
Posts: 4
|
![]() |
||
![]() ![]() |
|
![]() |
#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.
|
||
![]() ![]() |
|
![]() |
#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... |
||
![]() ![]() |
|
![]() |
#18 | ||
![]() ![]() ![]() Join Date: Jan 2008
Location: Christchurch, New Zealand
Posts: 1,044
|
![]() Quote:
cout << "Press enter to continue..." |
||
![]() ![]() |
|
![]() |
#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; } |
||
![]() ![]() |
|
![]() |
#20 | ||
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Apr 2009
Location: Selangor, Malaysia
Posts: 8
|
![]() you can also use
... cin.get(); return 0; } that did the work for me.. |
||
![]() ![]() |
|
![]() |
![]() |
||||
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 |
Thread Tools | |
Display Modes | |
|
|
||
  |