Resolva o problema do getLine

getline(cin >> ws, name);
Abdulrahman Ibrahim