摘要:
An operator is a symbol that tells the complier to perform specifc mathematical or logical manipulations. C++ allows u to specify more than one defini 阅读全文
posted @ 2020-06-14 08:47
John_K
阅读(180)
评论(0)
推荐(0)
摘要:
1.swap整数很容易, 但是swap 大型的数据用临时变量的方法就会耗费很大。 function std::move exists that converts any lvalue (or rvalue) into anrvalue. Note that the name is misleadin 阅读全文
posted @ 2020-06-14 04:02
John_K
阅读(622)
评论(0)
推荐(0)
摘要:
在IntCell.h 开头的#inndef IntCell_H #define IntCell_H #endif 是为了防止在编译的时候这个class被编译二次;因为在一个大型的项目中, class(A) 可以被文件B调用, 被文件C调用; 但是编译的时候我们希望 一个文件只被编译一次, 所以在.h 阅读全文
posted @ 2020-06-14 03:52
John_K
阅读(128)
评论(0)
推荐(0)
浙公网安备 33010602011771号