mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2025-05-18 12:02:53 +02:00
feat: rewrite programming-challenges CLI (#3)
This commit is contained in:
3
challenges/hello-world/solutions/cpp/function/README.md
Normal file
3
challenges/hello-world/solutions/cpp/function/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# hello-world/cpp/function
|
||||
|
||||
Created by [@Divlo](https://github.com/Divlo) on 7 June 2021.
|
@ -0,0 +1,9 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
int main() {
|
||||
for (std::string line; std::getline(std::cin, line);) {
|
||||
std::cout << "Hello, " + line + "!" << std::endl;
|
||||
}
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user