C++ Programming Ch.11 Exercise 10 Solution
Problem: ๋ค์์ ํ๋ก๊ทธ๋จ๊ณผ Execution Result๋ฅผ ๋ณด์ฌ์ค๋ค. prompt ์กฐ์์๋ฅผ ์์ฑํ์ฌ ํ๋ก๊ทธ๋จ์ ์์ฑํ๋ผ. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 #include #include using namespace std; int main() { string password; while(true) { cin >> prompt >> password; if(password == "C++") { cout << "login success!!" << endl; break; } else cout << "login fail. try again!!" << endl; } } Execution Result: ...