- 博客(5)
- 资源 (1)
- 收藏
- 关注
转载 Visual Studio 2013 智能提示功能消失解决办法
Visual Studio 2013中,智能提示功能突然用不了,查了一下,使用命令行重置VS的方法解决了这个问题。步骤如下: 开始菜单 -->所有程序-->Visual Studio 2013文件夹 --> Visual Studio Tools --> Developer Command Prompt for VS2013 输入DOS命令: CD Common7/IDE 进入到该工具
2016-10-09 20:22:19
2055
原创 C++拷贝构造函数与函数声明的区分
C++拷贝构造函数与匿名对象的存在使函数调用过程中很容易出现因为匿名对象做拷贝构造函数参数搅成一坨构成函数声明的结构,导致定义了一条没有作用的函数声明语句; 以下代码可以用于验证区分函数声明与给匿名对象起别名的情况。 #include using namespace std; class A { public: A() { cout } A(int a) { co
2016-09-26 00:37:37
628
原创 feof 的理解
例:写一个函数统计文件中字符的个数 int getFileSize(char *path, int *len) { FILE*fp = fopen(path, "r"); if (fp==NULL) { perror("open_err"); retur
2016-09-22 22:09:47
531
转载 C语言创建BOOL类型
C语言自定义bool类型的两种方式 定义枚举类型:typedef enum{false,true} bool; 也可以使用预定义 #ifndef bool #define bool int #endif #ifndef true #define true 1 #endif #ifndef false #define false 0 #endif
2016-09-17 20:48:13
2049
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅