GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 16-Jul-2006, 23:18
Brandnaem Brandnaem is offline
New Member
 
Join Date: Jul 2006
Posts: 1
Brandnaem is on a distinguished road

Very new to programming, slight problem.


I've been doing a few tutorials and have a reoccuring problem, when I trun and run the program it only stays open for less than a second. I'm running Windows Xp pro, and am using dev-C++, anyone know what i can do?
  #2  
Old 17-Jul-2006, 00:22
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,242
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all

Re: Very new to programming, slight problem.


You obviously are using an IDE, so once the program ends, the run window closes. Try this.
__________________

Age is unimportant -- except in cheese
  #3  
Old 17-Jul-2006, 12:29
Tomb332's Avatar
Tomb332 Tomb332 is offline
Junior Member
 
Join Date: Jul 2006
Location: Everywhere and yet nowhere at all
Posts: 47
Tomb332 is on a distinguished road
Lightbulb

Re: Very new to programming, slight problem.


One simple fix if you are writing DOS and dont want lots of extra code, is to add this.

At start(if you have not already)

CPP / C++ / C Code:
#include <iostream.h>;
using std::cin;(or using namespace std;)


At End(before closing brace(}) of main

CPP / C++ / C Code:
int x;
cin >> x;
 
 

Recent GIDBlogMore photos on Flickr by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Temperature Conversion Error Cecil C Programming Language 8 28-May-2006 20:09
printer / font color / windows programming nicolas_qc MS Visual C++ / MFC Forum 0 03-Jan-2006 23:13
a significant problem after installing Xp mohammad Computer Software Forum - Windows 10 09-Aug-2005 07:03
C programming problem... help me, please :) pabijek C Programming Language 8 07-Jan-2005 11:59
Problem on sin(C programming) fwongmc C Programming Language 8 10-Dec-2004 10:08

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 20:40.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.