I'm still confused on the return integer's purpose. I also would like to know what in this code makes it so when you press the return key it exits the program. I would like to know what I would put in so when I press Esc key that the program exits.
Code:#include <iostream>
using namespace std;
int main()
{
cout<<"HEY, you, I'm alive! Oh, and Hello World!\n";
cin.get();
return 1; <~~~WHAT!?? :confused:
}