This particular page does not have a code and was wondering
This particular page does not have a code and was wondering if I could get one.
Solution
// C++ Program to get the username and print hello username on the screen
#include <iostream>
#include <string>
using namespace std;
int main()
{
// string variable to store name
string name;
// this will ask user for name
cout << \"What is your name? \";
// get username and store in name string
getline (cin, name);
// prints Hello username!
cout << \"Hello, \" << name << \"!\ \";
}
