i have been stuck at this for almost an hour...can someone kindly tell me what am i doing wrong? at the getline(cin,name), when running the program it wont let me key in the name, it goes to system("pause") straight...
First thing, you should never use the system() command outside of fun coding or school assignments. Try putting cin.ignore() before the getline command to clear the buffer. Either way, I believe that cin >> string reads white space separated words.