명품 C++ programming 실습 문제 11장 10번
문제 : 다음은 프로그램과 실행 결과를 보여준다. 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; } } 실행 결과 : ...