摘要:
const修饰指针 1 const int * p 读作:p 指向不变量int int a = 2; const int * p = &a; // constant 必须初始化,否则报错 *p = 3; // 非法 int b = 3; p = &b; // 合法 2 int * const p 读 阅读全文
摘要:
C C++ 1 #include<iostream> 2 # include<exception> 3 using namespace std; 4 5 int abc(int a, int b, int c){ 6 if(a <= 0 || b <= 0 || c <= 0) 7 throw "a 阅读全文