The screen displays Hello when I use cout<<"hello"; for only like one second (I think because I have virtual DOS) But I need it to stay untill I press enter or something what is the command for that?
Someone told me before but I forgot, I think it was something like cin.get;
Check the FAQ. Its in there.
I found it it was std::cin.get(); but now I need to know how to put charcters (More than one) into my program, like I ask someone to type there name and tell them the name they typed, and I looked all in the FAQ but couldnt find it!
Easiest is to use std::string (in <string>).
cin >> str; // Gets you the first word.
getline(cin, str); // Gets you the whole line.
A relevant link.
I think this is what you are looking for
put that right before you return 0;