Wednesday 14 March 2012

Le Nom Input - C++

C++:

#include <iostream>
#include <string>
using namespace std;
 
int main() {
 
string name;
 
cout << "Enter y0ur name (first and last)" << endl;
getline(cin, name);
 
cout << "Your full name is " << name
<< endl;
return 0;
}

No comments:

Post a Comment