|
|
|
перегрузка оператора
|
|||
|---|---|---|---|
|
#18+
class Matrix { unsigned int col,row; int **ppMatr; public: Matrix(){ppMatr=NULL;} Matrix(unsigned int col,unsigned int row); ~Matrix(){if (ppMatr) {delete [] ppMatr;ppMatr=NULL;}} }; int main() { Matrix M1(3,4),M2(3,4); M2[2][1]=18; return 0; } Подскажите пожалуйста кокой оператор перегрузить,чтоб работала эта строчка : M2[2][1]=18 ? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.05.2005, 17:02 |
|
||
|
перегрузка оператора
|
|||
|---|---|---|---|
|
#18+
Код: plaintext 1. 2. 3. 4. 5. 6. 7. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.05.2005, 17:19 |
|
||
|
|

start [/forum/topic.php?fid=57&gotonew=1&tid=2033351]: |
0ms |
get settings: |
8ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
75ms |
get topic data: |
6ms |
get first new msg: |
3ms |
get forum data: |
1ms |
get page messages: |
38ms |
get tp. blocked users: |
1ms |
| others: | 238ms |
| total: | 389ms |

| 0 / 0 |
