C++ Programming Ch.11 Exercise 9 Solution
Problem: λ€μμ Phone ν΄λμ€μ΄λ€. 1 2 3 4 5 6 7 8 9 10 11 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; } }; Phone ν΄λμ€μ κ°μ²΄λ₯Ό μ μΆλ ₯νλ μλ μ½λμ Execution Resultλ₯Ό μ°Έμ‘°νμ¬ <<, >> μ°μ°μλ₯Ό μμ±νκ³ Phone ν΄λμ€λ₯Ό μμ νλ λ± νλ‘κ·Έλ¨μ μμ±νλΌ. 1 2 3 Phone girl, boy; cin >> girl >> boy; cout << girl << endl << boy << endl; Execution Result: ...