Showing
1 changed file
with
13 additions
and
0 deletions
echo.cpp
0 → 100644
1 | +#include <iostream> | ||
2 | + | ||
3 | +int main() { | ||
4 | + char buffer[256]; | ||
5 | + | ||
6 | + std::cout << "Hello! Please enter some text:\n>> "; | ||
7 | + while (std::cin >> buffer) { | ||
8 | + std::cout << buffer << std::endl; | ||
9 | + std::cout << ">> "; | ||
10 | + } | ||
11 | + | ||
12 | + return 0; | ||
13 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment