I think you should use std::string rather than char.
1 2 3 4
cout << "What is your name?";
cin >> name;
cout << "Are you sure it is " << name << "?" << std::endl;
You are using type char as the variable which for your program will store 1 character only. If you want to get input of a name - a string of characters combined - you need to use a string type as the storage variable.