Isnt he forgeting to #include <string.h>?
Well I am new as well but you would put that if you wanted the user to input something with spaces for example
errr sorry I think I have complicated it up a bit, and in doing so I forgot the question...enjoy.Code:#include <string.h> #include <iostream.h> int main() { char userName[25]=""; cout<<"Hello, enter your name "; cin.getline(userName,25); cout<<"Hello, "<<userName<<endl; return 0; }