- 博客(5)
- 收藏
- 关注
原创 栈与队列
#include #include #define OK 1#define TRUE 1#define ERROR -1#define FALSE -1#define OVERFLOW -2#define ElemType int#define Status int//栈的顺序存储结构//定义top变量指示栈顶元素在数组中的位置//空栈判定条件 top=-1 //顺序栈
2017-12-31 12:19:07 147
原创 静态链表的初始化、插入、删除
#include #include #define OK 1#define TRUE 1#define ERROR -1#define FALSE -1#define OVERFLOW -2#define ElemType int#define Status int//------静态链表 X 使用数组实现链表,可以在没有指针的编程语言中实现链表结构#define MAXSI
2017-12-28 21:36:57 2793 1
转载 C++中左值与右值
让我们先看看一些常见的左值和右值举例:int var = 6; // var is a lvalueconst int var = 6; // var is a (nonmodifiable) lvaluechar str[] = "hello, world"; // str is a (nonmodifiable)
2017-12-28 16:59:20 208
转载 C语言中 malloc函数用法
http://blog.sina.com.cn/s/blog_9444ed240102vc0z.html函数声明(函数原型):void *malloc(int size);说明:malloc 向系统申请分配指定size个字节的内存空间。返回类型是 void* 类型。void* 表示未确定类型的指针。C,C++规定,void* 类型可以强制转换为任何其它类型的指针。
2017-12-28 10:42:01 4075
转载 C++文件读写详解(ofstream,ifstream,fstream)
在看C++编程思想中,每个练习基本都是使用ofstream,ifstream,fstream,以前粗略知道其用法和含义,在看了几位大牛的博文后,进行整理和总结:这里主要是讨论fstream的内容:[java] view plain copy#include ofstream //文件写操作 内存
2017-12-15 22:25:23 126
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人