ok well i started out with making my own source code then compiling and running with Dev-C++ and when i run it, its working fine until the last line, here let me past my code
// just a test
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string mystr;
cout << "Hello, whats your name? ";
getline (cin, mystr);
cout << "Hello " << mystr << ".\n";
cout << "What grade are you in" << mystr << "? ";
getline (cin, mystr);
cout << "Thats cool, I used to be in " << mystr << "too.\n";
cout << "Well i'm going to go now, goodbye.";
return 0;
}
i know its stupid, i just started and wanted to do something, but ok when i get to the part "what grade are you in << mystr << "? "; and when i enter my grade or w/e the box just closes, is there any way to fix this, would i have to put something like Press "q" to quit or something like that? Any help would be nice, thankyou