1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-12-08 00:45:29 +01:00
programming-challenges/challenges/hello-world/solutions/cpp/function/solution.cpp

11 lines
189 B
C++

#include <cstdlib>
#include <iostream>
#include <string>
int main() {
std::string line;
std::getline(std::cin, line);
std::cout << "Hello, " + line + "!\n";
return EXIT_SUCCESS;
}