1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-07-18 02:20:12 +02:00
programming-challenges/challenges/hello-world/solutions/cpp/function/solution.cpp

10 lines
182 B
C++

#include <iostream>
#include <string>
int main() {
for (std::string line; std::getline(std::cin, line);) {
std::cout << "Hello, " + line + "!" << std::endl;
}
return 0;
}