[C++]명품 C++ 프로그래밍 실습문제 11장 12번 [C++]명품 C++ 프로그래밍 실습문제 11장 12번 [C++]명품 C++ programming 실습문제 11장 12번 명품 C++ 프로그래밍실습문제/연습문제 /C++ //CoffeeMachine.cpp #include "CoffeeMachine.h" #include using namespace std; void CoffeeMachine::Show_Machine_State(){ cout C++ 2023.01.26
[C++]명품 C++ 프로그래밍 실습문제 11장 10번 [C++]명품 C++ 프로그래밍 실습문제 11장 10번 [C++]명품 C++ programming 실습문제 11장 10번 명품 C++ 프로그래밍실습문제/연습문제 /C++ #include #include #include #include #include #include using namespace std; istream& prompt(istream& ins) { cout > prompt >> passswords; if (passswords == "C++") { cout C++ 2023.01.26
[C++]명품 C++ 프로그래밍 실습문제 11장 9번 [C++]명품 C++ 프로그래밍 실습문제 11장 9번 [C++]명품 C++ programming 실습문제 11장 9번 명품 C++ 프로그래밍실습문제/연습문제 /C++ #include #include #include #include #include #include using namespace std; class Phone { string name; string telnum; string address; public: Phone(string name = "", string telnum = "", string address = "") { this->name = name; this->telnum = telnum; this->address = address; } friend ostream& operator > (.. C++ 2023.01.26
[C++]명품 C++ 프로그래밍 실습문제 11장 7번 [C++]명품 C++ 프로그래밍 실습문제 11장 7번 [C++]명품 C++ programming 실습문제 11장 7번 명품 C++ 프로그래밍실습문제/연습문제 /C++ #include #include #include #include #include #include using namespace std; int main() { for(int i=0;i C++ 2023.01.26
[C++]명품 C++ 프로그래밍 실습문제 11장 5번 [C++]명품 C++ 프로그래밍 실습문제 11장 5번 [C++]명품 C++ programming 실습문제 11장 5번 명품 C++ 프로그래밍실습문제/연습문제 /C++ #include #include #include #include #include #include using namespace std; int main(){ string cmd; cout C++ 2023.01.26
[C++]명품 C++ 프로그래밍 실습문제 11장 4번 [C++]명품 C++ 프로그래밍 실습문제 11장 4번 [C++]명품 C++ programming 실습문제 11장 4번 명품 C++ 프로그래밍실습문제/연습문제 /C++ #include using namespace std; int main() { int ch; while( (ch = cin.get()) != EOF ) { if(ch == ';'){ cout.put('\n'); cin.ignore(100, '\n'); } else cout.put(ch); } } C++ 2023.01.26
[C++]명품 C++ 프로그래밍 실습문제 11장 2번 [C++]명품 C++ 프로그래밍 실습문제 11장 2번 [C++]명품 C++ programming 실습문제 11장 2번 명품 C++ 프로그래밍실습문제/연습문제 /C++ #include #include #include #include #include #include using namespace std; int main(){ char ch; int count =0; while (true) { cin.get(ch); if(ch == ' ')count++; if(cin.eof())break; cout.put(ch); if(ch == '\n') break; } cout C++ 2023.01.26
[C++]명품 C++ 프로그래밍 실습문제 10장 16번 [C++]명품 C++ 프로그래밍 실습문제 10장 16번 [C++]명품 C++ programming 실습문제 10장 16번 명품 C++ 프로그래밍실습문제/연습문제 /C++ //Circle.cpp #include "Circle.h" void Circle:: draw() { cout n; return n; } int UI::del() { // 도형 삭제에 대한 메뉴 출력 및 입력 cout > n; return n; } class GraphicEditor { vector v; vector::iterator it; public: GraphicEditor() {} void insert() { int n = UI::insert(); if (n == 1) // 라인 v.push_back(new Line()); else.. C++ 2023.01.25
[C++]명품 C++ 프로그래밍 실습문제 10장 14번 [C++]명품 C++ 프로그래밍 실습문제 10장 14번 [C++]명품 C++ programming 실습문제 10장 14번 명품 C++ 프로그래밍실습문제/연습문제 /C++ #include #include #include #include #include #include #include using namespace std; int main(){ cout > num; switch (num) { case 1: cout > s1 >> s2; dic.insert(make_pair(s1,s2)); break; case 2: while (1) { cout> name; if(dic.find(name)==dic.end()){ cout passwords; if(dic.at(name) == passwords){ cout C++ 2023.01.25
[C++]명품 C++ 프로그래밍 실습문제 10장 12번 [C++]명품 C++ 프로그래밍 실습문제 10장 12번 [C++]명품 C++ programming 실습문제 10장 12번 명품 C++ 프로그래밍실습문제/연습문제 /C++ #include #include #include #include #include using namespace std; class Word { string english; string korean; public: Word(string eng,string kor) { this->english = eng; this->korean = kor; } string getEng() { return english; } string getKor() { return korean; } }; int main() { string example[4] = { "" .. C++ 2023.01.25