planning
This commit is contained in:
@@ -3,15 +3,10 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "Hello World!" << std::endl;
|
||||
|
||||
// ask for name of person
|
||||
std::cout << "Please enter your first name: ";
|
||||
char *name = new char[100];
|
||||
std::cin >> name;
|
||||
|
||||
std::string welcome_message = "Welcome, " + std::string(name) + "!";
|
||||
|
||||
std::cout << std::endl << BOLDGREEN << welcome_message << RESET << std::endl;
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user