Make name a char* or a string and use cin.getline(char* name) or ... with) would be to create a pointer (char * p1) and point it at the char array ...
www.google.com.tw