Code:#include <iostream> using namespace std; int main(){ char a,b,c,d,e,f,g,h,i,j,k; cout << "Please enter your first name\n"; cin >> a >> b >> c >> d >> e >> f; cin.ignore(); cout << "You entered -"<< a << b << c << d << e << f;"- Is this correct?\n"; cin.get(); }
I'm trying to get this project to display the name that a user types and then ask if its correct. It displays the name but doesn't ask if its correct. I'd appreciate your help.
-pat3lbr0s2014-