C++ Programming Ch.7 Exercise 6 Solution
Problem: 2์ฐจ์ ํ๋ ฌ์ ์ถ์ํํ Matrix ํด๋์ค๋ฅผ ์์ฑํ๊ณ , show() ๋ฉค๋ฒ ํจ์์ ๋ค์ ์ฐ์ฐ์ด ๊ฐ๋ฅํ๋๋ก ์ฐ์ฐ์๋ฅผ ๋ชจ๋ ๊ตฌํํ๋ผ. 1 2 3 4 5 6 Matrix a(1,2,3,4), b(2,3,4,5), c; c = a + b; a += b; a.show(); b.show(); c.show(); if(a==c) cout << "a and c are the same" << endl; (1) ์ฐ์ฐ์ ํจ์๋ฅผ Matrix์ ๋ฉค๋ฒ ํจ์๋ก ๊ตฌํํ๋ผ. (2) ์ฐ์ฐ์ ํจ์๋ฅผ Matrix์ ํ๋ ๋ ํจ์๋ก ๊ตฌํํ๋ผ. Execution Result: Objective & Hints: ...