实验:
有两个个矩阵a和b,均为2行3列。 重载运算符“+”,
(1)使之能用于矩阵的相加。如c=a+b。
(2)如果参与运算的两个操作数中一个是整数即矩阵+3或3+矩阵形式,进行加法运算也能得出和。
(3)定义自减运算符的前置(i++)和后置(++i)重载编写相应程序并验证它的正确性。
-i think it s a goog for many people
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001613s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.083544s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001067s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001159s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001058s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003160s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000872s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003654s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.015588s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001224s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 15614 [ RunTime:0.027529s ]