ok, i used to be able to do this code but it wont work now!! can someone please tell me what is wrong?
its supposed to put the name in the message (you probable know that) but all it does it abort the program. i know i have to be doing something VERY wrong in there but...what?Code:#include <iostream> using namespace std; int main() { int name; cout<<"hello there, what is your name?\n"; cin>>name; cout<<"welcome " << name << ", how are you today?\n"; cin.ignore(); }
-thanks in advance