![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++
lbf12313579
这个作者很懒,什么都没留下…
展开
-
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 · 1935 阅读 · 1 评论 -
链表各种排序
链表各种排序原创 2016-09-17 21:29:41 · 377 阅读 · 0 评论 -
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 · 473 阅读 · 0 评论 -
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 · 1970 阅读 · 0 评论 -
C++拷贝构造函数与函数声明的区分
C++拷贝构造函数与匿名对象的存在使函数调用过程中很容易出现因为匿名对象做拷贝构造函数参数搅成一坨构成函数声明的结构,导致定义了一条没有作用的函数声明语句;以下代码可以用于验证区分函数声明与给匿名对象起别名的情况。#include using namespace std;class A{public:A(){cout }A(int a){co原创 2016-09-26 00:37:37 · 565 阅读 · 0 评论