echo_prog.cpp 244 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 #include <iostream> using namespace std; int main(){ char* msg; cout << "보낼 메시지를 입력하시오." << endl; cin >> msg; for (int i=0;i<sizeof(msg);i++){ cout << msg[i]; } cout << endl; if(msg == "exit"){ exit(10); } return 0; }