Thread: Variables
View Single Post
  #13 (permalink)  
Old 11-30-2007, 05:19 AM
Bench Bench is offline
Full Programmer
Join Date: Jul 2007
Location: UK
Posts: 116
iTrader: (0)
Bench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished road
Quote:
Originally Posted by MrPickle View Post
Woo hoo! Thanks!!



Please show me how, I've only started learning today.

On a different subject, is there a way to prevent the command prompt from closing? EG make it close when you press Enter?
Windows automatically closes a command prompt window when a program has finished running. As far as I know, there's no way to stop windows from doing that, so you need to find some way to stop your program from finishing, until you want it to.

If you use MS Visual Studio as your IDE, then use [CTRL]+[F5] to compile/run your programs. VS will add a "pause" after your program finishes.

if you're not using MSVC, then have a look at this link
Cprogramming.com: FAQ

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote