1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-11-09 22:08:58 +01:00
programming-challenges/challenges/hello-world/solutions/cpp/function/solution.cpp

11 lines
189 B
C++
Raw Normal View History

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