Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - Where to start. What to start with. | |
Pages: 1 2Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
paraplayer

Snifit
Level: 22

Posts: 37/280
EXP: 57271
For next: 1079

Since: 06-06-05

Since last post: 44 days
Last activity: 44 days
Posted on 06-08-05 08:48 AM Link | Quote
hey i have a problem with my compiler (using the blooddev one)

Whenever i run a script it opens an Ms-DOS window and exits immedietly (Thoguh the script DOES work. It says "Hello" right before it exits for a split second)

anybody know how i can fix this?
Dish

Spiny
Level: 38

Posts: 418/596
EXP: 355646
For next: 14801

Since: 03-15-04
From: Disch

Since last post: 18 days
Last activity: 18 days
Posted on 06-08-05 08:55 AM Link | Quote
That's what commandline programs do -- the run, then exit when they're done. If you want to window to stay open you have two options:

1) Open up a command prompt (Start | Run | type "cmd") and launch your program from the commandline

2) put '_getch();' or something at the end of the program so that it polls for user input before it closes (for _getch(), I believe you need to include conio.h)
Pages: 1 2Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Programming - Where to start. What to start with. | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.004 seconds.