So i've just started out with C++, using a guidebook I bought on amazon. I'm using bloodshed dev-C++, however, i can't get it to work properly. I'm following the tutorials very closely, and write exactly the code that i'm supposed to, however, when run/debug, the program closes itself before it's barely opened. I can only see it for a splitsecond. Anyone got a solution to this? I'd rather try not to get too messy and insert all kinds of code, since i'm new to it, and i'm trying to follow the book where i only have to put in some certain code, not all kinds of stuff i dont even understand what does....
EDIT 1: Yeah, I did post the code, but it just takes forever to the moderator to approve it. Same reason I did two similar posts in the first place, thought they had forgotten about it...
Anyways, here's the code:
using namespace std;