This commit is contained in:
talksik
2024-01-27 10:25:17 -08:00
parent 16527cb3fb
commit cbe57d4c18
2 changed files with 6 additions and 5 deletions
-5
View File
@@ -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;