2022年1月13日
摘要: 使用 & 为变量和常量作为引用 1 #include <iostream> 2 using namespace std; 3 int main() 4 { 5 int oneInt = 1;//定义一个变量oneInt,并赋值为1 6 int & ref = oneInt;//定义变量ref引用变量 阅读全文
posted @ 2022-01-13 21:26 咫尺流云 阅读(48) 评论(0) 推荐(0) 编辑