
C/C++
SudoGod
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
通过改变函数的返回值改变它所指向的存储单元
#include using namespace std; int GlobaArg= 0; int * fun1 () { return &GlobaArg; } int *fun2(int *ptr) { return ptr; } void main(int arg, char *argv[]) { *fu原创 2011-11-22 20:38:48 · 908 阅读 · 2 评论 -
C++构造函数
以下两种情况不会调用构造函数 1 : 创建对象指针时; 2 : 创建对象引用时; 注意: 用new运算符或其它方式初始化时会调用。原创 2011-11-30 17:20:26 · 594 阅读 · 0 评论 -
C++之Stack
#include "iostream" using namespace std; class Cstack { int *top; int *bottom; public: Cstack() { top = bottom = new int[100]; } void Push(int c) { if翻译 2011-12-12 20:32:37 · 705 阅读 · 0 评论 -
数据采集测试
//PciAdTest #include #include #include #include #include #include //define #define FILENAME "DataInfo.txt" #define MAXLEN 1024 //typedef typedef struct _ReadData { int *re原创 2011-12-13 21:31:07 · 1125 阅读 · 0 评论 -
C++构造函数
#include "iostream" using namespace std; class B { int i; public: B(){cout }; class A { int i; public: A(){cout A(int a) { i = a; cout翻译 2011-12-12 20:09:07 · 669 阅读 · 0 评论