Next Gen Boards
 

Sponsored Links
Arcade YouTube vbBux / vbPlaza Calendar FAQ

Reply
 
Thread Tools Display Modes  
wildirshman13
Brigadier Grade 4
 
wildirshman13's Avatar
 
Join Date: May 2007
Location: kansas city
Posts: 1,078
Rep Power: 3 wildirshman13 is on a distinguished road Reputation: 23
Points: 139,433.39
Bank: 0.00
Total Points: 139,433.39
For having wicked sigs and always being possitive - kezzer007 GIMME SUM SUGAR! - TERR0R_ Well you see even though you send me a big paragraph in this tiny little space, I can still read it so feel free to type a novel. I don't mind, I actually enjoy novels. Oh, and I'm doing great. I think this is how we should communicate from now on ra - TERR0R_ Thank you for the GFX you made for me from Uni4on - Uni4on hi i randomly did this - nathstar101 
wildirshman13 is offline
 
Send a message via MSN to wildirshman13
 
#1
01-19-2008, 04:57 PM   #1
Reply With Quote
quick question for C++

alright i am new to C++ and i have a problem that i cant seem to figure out. I am going along with the book or what gunz has posted so far and its awesome but when im making a program it automatically closes and yes you can put a part in where you have to press enter but then when i have a program that requires a person to input information then it displays information after the input there is a problem after they input the info i auto closes even if i do add the part of the script that requires you to press enter it seems to by pass all the cout shit and its pissing me off hope some one can help thanks
__________________



If you like my sigs rep me (thanks for the rep guys i appreciate the feedback!)
Report Post
mameman2
Commander Grade 4
 
mameman2's Avatar
 
Join Date: Mar 2007
Location: in the shoutbox mostlikely
Posts: 554
Rep Power: 2 mameman2 is on a distinguished road Reputation: 17
Points: 301.00
Bank: 405,084.79
Total Points: 405,385.79
for giving me 60 bucks - cobrad for getting hacked - RezSide 
Boston Red Sox New England Patriots
mameman2 is offline
 
Send a message via AIM to mameman2Send a message via Yahoo to mameman2
 
#2
01-19-2008, 06:46 PM   #2
Reply With Quote
try this

Code:
#include "stdafx.h"
#include <iostream>
using namespace std;

int main();
{

        cout << "Game Over" << endl;
        system("pause");
return 0;
}
did u put the pause AFTER cout and BEFORE return 0;

or maybe its cuz u dont have something that goes after the user input...if u just have input the nothing the program will close...unless u put something after that it wont stay open
__________________
DONT CLICK HERE

Quote:
[Today 08:54 PM] conrad127:we just abuse our powers and ban people
Quote:
[Today 09:04 PM] Tinsley85: no i'm a noob!!!
Quote:
[Today 10:22 PM] heavytech94: attack and brutally murder mamemam

Last edited by mameman2; 01-19-2008 at 06:48 PM..
Report Post
wildirshman13
Brigadier Grade 4
 
wildirshman13's Avatar
 
Join Date: May 2007
Location: kansas city
Posts: 1,078
Rep Power: 3 wildirshman13 is on a distinguished road Reputation: 23
Points: 139,433.39
Bank: 0.00
Total Points: 139,433.39
For having wicked sigs and always being possitive - kezzer007 GIMME SUM SUGAR! - TERR0R_ Well you see even though you send me a big paragraph in this tiny little space, I can still read it so feel free to type a novel. I don't mind, I actually enjoy novels. Oh, and I'm doing great. I think this is how we should communicate from now on ra - TERR0R_ Thank you for the GFX you made for me from Uni4on - Uni4on hi i randomly did this - nathstar101 
wildirshman13 is offline
 
Send a message via MSN to wildirshman13
 
#3
01-19-2008, 09:39 PM   #3
Reply With Quote
thanks it worked the thing he said to enter was a shit load different
__________________



If you like my sigs rep me (thanks for the rep guys i appreciate the feedback!)
Report Post
Reply

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

top Go to Top All times are GMT -4. The time now is 04:58 PM.

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 Copyright ©2006 - 2008, NextGenBoards. All Rights Reserved