Showing
1 changed file
with
13 additions
and
0 deletions
echo_prog.cpp
0 → 100644
| 1 | +#include <iostream> | ||
| 2 | +using namespace std; | ||
| 3 | + | ||
| 4 | +int main(){ | ||
| 5 | + char* msg; | ||
| 6 | + cout << "보낼 메시지를 입력하시오." << endl; | ||
| 7 | + cin >> msg; | ||
| 8 | + for (int i=0;i<sizeof(msg);i++){ | ||
| 9 | + cout << msg[i]; | ||
| 10 | + } | ||
| 11 | + cout << endl; | ||
| 12 | + return 0; | ||
| 13 | +} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment