Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++入门笔记(1) | 瑜璟博客 #35

Open
yujingsea opened this issue Feb 5, 2022 · 0 comments
Open

C++入门笔记(1) | 瑜璟博客 #35

yujingsea opened this issue Feb 5, 2022 · 0 comments

Comments

@yujingsea
Copy link
Owner

https://yujingsea.github.io/2022/02/05/31/

前言笔记整理自mooc程序设计与算法(三)C++面向对象程序设计 郭炜老师讲的还是很清楚的 第一章:从 C 到C++引用 类型名 & 引用名 = 某变量名; 12int n = 4; int & r = n; r引用了n,r的类型是int & 之后对r的修改就是对n的修改,对n的修改就是对r的修改 定义引用时一定要将其初始化成引用某个变量,之后不会再引用其他变量 在C

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant