I simply want the program to ask the name and then respond back using it, so I wrote this code:
I don't even know why I'm using endl; or return 0; it just seems to be what you do, however, this program is giving me many errors (which I can post, but I didn't think it neccesary for this).Code:#include <iostream> namespace std; int main() { cout<< "Hello, what is your name?"; cin>> name; cout<< "Hello" << name << endl; return 0; }
The strangest error is it doesn't even seem to recognize namespace std, and I've no idea how I'm going to fix that issue.