Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 18th, 2005, 7:52 PM   #1
annomlem
Newbie
 
Join Date: Feb 2005
Posts: 5
Rep Power: 0 annomlem is on a distinguished road
Thumbs up Small C++ problem... [solved]

Hey all, total newbie here I am just starting to learn C++, and doing ok for the most part. I'm using Dev-C++ and everything was fine until a couple of days ago. For some reason, all of my
std::cin.get();
lines stopped working. Out of nowhere. The program will run through and then just close because it has ended, without allowing me to see the text (the purpose of the cin.get() anyway). I have no idea why this is. If you have any suggestions please give them.
Thanks in advance

Last edited by annomlem; Feb 19th, 2005 at 10:42 AM. Reason: solved
annomlem is offline   Reply With Quote
Old Feb 18th, 2005, 9:29 PM   #2
Xero
Hobbyist Programmer
 
Join Date: Dec 2004
Location: a cardboard box
Posts: 118
Rep Power: 4 Xero is on a distinguished road
did u forget "#include <iostream>" and "using namespace std"?
__________________
...
Xero is offline   Reply With Quote
Old Feb 19th, 2005, 3:07 AM   #3
annomlem
Newbie
 
Join Date: Feb 2005
Posts: 5
Rep Power: 0 annomlem is on a distinguished road
No, no I did not forget those. Unfortunately it isn't quite that easy. Like I said, it was working fine for a couple of days then all of a sudden *poof*...
annomlem is offline   Reply With Quote
Old Feb 19th, 2005, 3:44 AM   #4
Xero
Hobbyist Programmer
 
Join Date: Dec 2004
Location: a cardboard box
Posts: 118
Rep Power: 4 Xero is on a distinguished road
hmm guess I can't really help you then. Seems like something happened to your comp. Perhaps you deleted something?
__________________
...
Xero is offline   Reply With Quote
Old Feb 19th, 2005, 10:13 AM   #5
annomlem
Newbie
 
Join Date: Feb 2005
Posts: 5
Rep Power: 0 annomlem is on a distinguished road
Maybe, though I don't remember doing anything that would have deleted any files...but then again we are talking about a computer here...
annomlem is offline   Reply With Quote
Old Feb 19th, 2005, 10:40 AM   #6
annomlem
Newbie
 
Join Date: Feb 2005
Posts: 5
Rep Power: 0 annomlem is on a distinguished road
Ok, I'm stupid I forgot a cin.ignore(); line after input, so I suppose that my program was generating some error (I was adding ints). Thanks anyway though
annomlem is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:58 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC