会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
二次元码
博客园
首页
新随笔
联系
订阅
管理
[置顶]
C/C++ 二维数组的理解(多维数组)
摘要: 纯属个人理解,在内存中实际存储情况可能不是如此的,我也没有去详细查询,只是这样便于理解。 ps:本来是我的个人笔记中的,感觉自己理解的挺好,就分享出来了。
阅读全文
posted @ 2020-07-03 21:59 Rainarose
阅读(216)
评论(0)
推荐(0)
2018年12月5日
函数名前加 & 符号的深入理解 C++
摘要: #include using namespace std; int& test_str() { int a = 1; return a; //通过返回 a 的地址来进行 值的返回(即 a的地址中所储存的值) } int ff(int t) //返回的就是个数 a 的值,a属于局部变量,函数调用完后内存自动释放,地址也就不存在 //所以运行 &ff(b) 会报错 ...
阅读全文
posted @ 2018-12-05 17:24 Rainarose
阅读(6202)
评论(0)
推荐(0)
2018年11月26日
C++常量(const)的使用
摘要: #include <iostream> using namespace std; class MyClass { public: int GetValue() const ; int GetValue() { return x + y; } int GetMax() { return x > y ?
阅读全文
posted @ 2018-11-26 21:34 Rainarose
阅读(1274)
评论(0)
推荐(0)
2018年11月25日
C++拷贝构造函数 的理解
摘要: #include <iostream> using namespace std; //拷贝构造函数的理解 class Point { public: Point(); Point(int X, int Y); ~Point(); Point(Point &p); void setPoint(int
阅读全文
posted @ 2018-11-25 18:41 Rainarose
阅读(422)
评论(0)
推荐(0)
2018年6月29日
//指针的进一步理解
摘要: #include "stdio.h" #include "stdlib.h" #define SIZE 4 struct student { int num; struct student *next; }stu[SIZE]; main() { struct student *h=NULL,*q,*tail; int i=0; while(inext=t...
阅读全文
posted @ 2018-06-29 10:20 Rainarose
阅读(179)
评论(0)
推荐(0)
公告