![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
指针与数组
逐影Linux
不成魔自成狂。
展开
-
指针与数组之从一个小程序说起
#include int main() { int data[]={0,1,2,3,4,5,6,7,8,9}; int size=sizeof(data)/sizeof(data[0]); printf("data:%d\n",sizeof(data)); printf("结果是:%d\n",addArray(data,size)); return 0; } int ad原创 2012-12-28 20:58:14 · 455 阅读 · 0 评论 -
类,指针函数,数组组合使用
//my_stack.h //基于动态数组的栈实现 #ifndef __MY_STACK_H__ #define __MY_STACK_H__ class MyStack { public: MyStack(int size, int Mode); ~MyStack(); void push(int value); int pop() {原创 2014-11-29 00:41:40 · 610 阅读 · 0 评论