View Single Post
  #2 (permalink)  
Old 04-21-2007, 08:08 PM
theaceoffire's Avatar
theaceoffire theaceoffire is offline
Senior Member
My Mood:
 
Join Date: Oct 2006
Location: Here.
Posts: 358
Points: 10.11
Donate
Send a message via AIM to theaceoffire Send a message via MSN to theaceoffire Send a message via Yahoo to theaceoffire
Ok, your problem is that you are returning 0.

In other words, your program works, but since your program is done windows automatically closes it.

To fix this, insert this line of code right before return 0:
Quote:

char fakeexit;
cin>>fakeexit;
This will wait until you enter a letter before exiting your program.
__________________
Subworld 34 Inc.
(2.60>2.71HenC>1.50)
(1.50>2.71SEA>2.71SEB>2.71SEB`>2.71SEB``>2.71SEC)
(1.50>3.02OEA>3.02OEB>3.03OEA>3.03OEC)
Answer to ALL questions HERE...
Personal Site: Subworld 34 GE
Personal Server: Subworld's Sever
Reply With Quote