摘要:
//reference count, copy-on-write//注意:delete this;析构函数调用以及operator #include #include #include using namespace std; class Dog { string nm; int refcount; Dog(const string& name) ... 阅读全文
posted @ 2017-07-29 14:04
Worty
阅读(442)
评论(0)
推荐(0)
摘要:
一、重载运算符法 2.构造函数转换 3.阻止构造函数被隐式调用,要求必须显示调用: 阅读全文
posted @ 2017-07-29 14:02
Worty
阅读(272)
评论(0)
推荐(0)
摘要:
yyp:复制当前行到下一行 cw:改变当前字符串 xp:交换当前字符和右边字符 阅读全文
posted @ 2017-07-29 09:48
Worty
阅读(127)
评论(0)
推荐(0)
摘要:
/* 从一个简单的实例开始:对考试结果进行统计分析(及格率) int main(int argc, char *argv[]) { float scores[STUDENT_COUNT]; int passed = 0; //initialize scores here... for (int i = 0; i != STUDENT_COUNT; i++) ... 阅读全文
posted @ 2017-07-29 08:28
Worty
阅读(379)
评论(0)
推荐(0)
摘要:
参考资料:http://blog.csdn.net/hk2291976/article/details/51280816 常用命令: k,w:上移; j,s:下移;h:向左;l:向右;u:上半页d:下半页gg:网页头G:网页尾0:网页最左$:网页最右 visual模式下复制粘贴 /:查找 n/N:向 阅读全文
posted @ 2017-07-29 00:16
Worty
阅读(252)
评论(0)
推荐(0)
浙公网安备 33010602011771号