I cant get this to work:
it compiles without any errors but when i enter in a name it bails. if i sent in one character it'll work correctly. How do i get it so that it could with with multiple characters too?Code:#include <iostream> using namespace std; int main() { char var_name; cout<<"Please enter in your name...\n"; cin>> var_name; cin.ignore(); cout<<"Your name is "<< var_name <<"\n"; cin.get(); }