Files
kieferrm 333d9a4053 Hello Copilot
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-06-27 11:35:20 +02:00

17 lines
270 B
C++

#include <iostream>
#include <string>
int main()
{
std::string name = getName();
std::cout << "Hello, " << name << "!" << std::endl;
}
std::string getName()
{
std::string name;
std::cout << "Enter your name: ";
std::cin >> name;
return name;
}