引用 将声明符写成 &d 的形式 来定义引用类型,d 是声明的变量名 int& r = 10; 错误(活动) E0461 非常量引用的初始值必须为左值 Read More
posted @ 2021-12-13 21:34
ethan178
Views(68)
Comments(0)
Diggs(0)
int sum = 0, val = 1; while (val<=10) { sum += val; val++; } cout << "Sum of 1 to 10 inclusive is " << sum << endl; return 0; int length, i, sum = 0; Read More
posted @ 2021-12-13 20:18
ethan178
Views(124)
Comments(0)
Diggs(0)
ctrl+k,ctrl+c 如果不是整行选中的话,注释是这个/* */ 整行选中的话,注释是这个 // Read More
posted @ 2021-12-13 20:03
ethan178
Views(327)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号