Okay, I have Windows 10. I am using Sublime Text2 with the MinGW compiler.
I went through the sticky on Console Closing down. I tried several different options, however the console still immediately closes down. I have come to the conclusion that based on the fact the post is seven years old those solutions wont work on windows 10. OR and MORE LIKELY My newness is showing and I am not putting those solutions in the correct place in my code. I pasted my code below, If one of you lovely folks could help me out I would really appreciate it. I am only on my second c++ tutorial ever. Thanks!
That did the trick! and what a trick it is. I'm guessing its leaving the program unfinished. of course the user has no idea to enter an input to exit, but for my purposes of learning, its perfect! Thanks dude!
I will leave this code below in case any other novice's may need it. using the code below will still keep the window open, but will prompt/instruct user how to close it.
1 2 3
int x;
cout << "Press letter then ENTER to close" << endl;
cin >> x;