C++ 123

[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++ 프로그래밍 실습문제 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