wrong bracket usage
redeclaration
old headers
why a loop here???
Here is a simple code:
Code:#include <iostream> using namespace std; int main() { cout << "Please input your name: "; char string[256]; // string with max. 256 characters cin.getline(string,'\n'); cout << "\nWelcome " << string << endl; system("pause"); // to keep the window open return 0; }