摘要: #include "stdafx.h" using namespace std; class Test { public: int i; int getTest() { return i; } }; typedef struct _tag_Test { int i; } TEST; int _tmain(int argc, _TCHA... 阅读全文
posted @ 2015-04-28 16:31 河豚 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/carekee/articles/1948326.html 概括的说,指针其实就是可变数组的首地址,说是可变数组,是 指其包含内容的数量的可变的,并且是可动态申请和释放的,从而充 分节约宝贵的内存资源。我一向喜欢一维数组,除非万不得已,我一 般是不用二维数组的,多维的则更是很少涉足了。因为一维简单,容 易理解,而用指针指向的多维数组就具有相当的复... 阅读全文
posted @ 2015-04-28 15:52 河豚 阅读(2569) 评论(0) 推荐(0) 编辑