#include<iostream>
using namespace std;
int main()
{
char name;
cout<<"Enter your name.\n";
cin >> name;
cin.get();
cout<<"Hello, " << name;
cin.get();
}
this is what I have..
Very simple program but I cannot get it to work, as soon as I enter two or more letters when debugging, the cmd crashes. I think it is because I am using char instead of another kind of variable, but i dont know what else to use! Please help. Thanks