摘要:
1 /** 2 * self defined struct as the key of map in c++ 3 */ 4 struct K { 5 int n1, n2; 6 K(int i, int j): n1(i), n2(j) {} 7 // the operator < defines 阅读全文
摘要:
静态成员函数编译时出现 static成员"Cannot declare member function ...to have static linkage"错误 解决方案 在.cpp文件中去掉static关键字 static的用法有好几种,在类中成员函数的声明使用static关键字则是规定说该成员函 阅读全文
摘要:
进入命令行Debug模式,python -m pdb test.py h:(help)帮助 l:(list)列出源码 l 列出当前执行语句周围11条代码 l first 列出first行周围11条代码 l first second 列出first--second范围的代码,如果second<firs 阅读全文