// 指针与const ???问明白
typedef char *pstring; //pstring == char *
char ch2 = 'a';
char ch3 = 'b';
const pstring cstr1 = &ch2; //常变量cstr1必须完成初始设定。指向char的常量指针,必须被初始化
// cstr1 = &ch3; 常量指针无法改变
const char* cstr3 = &ch2;
cstr3 = &ch3; //非常量指针可以改变
pstring const cstr2 = &ch2; //常变量cstr2必须完成初始设定,与const pstring cstr1 = &ch2;等价
// cstr2 = &ch3; 常量指针无法改变
typedef char *pstring; //pstring == char *
char ch2 = 'a';
char ch3 = 'b';
const pstring cstr1 = &ch2; //常变量cstr1必须完成初始设定。指向char的常量指针,必须被初始化
// cstr1 = &ch3; 常量指针无法改变
const char* cstr3 = &ch2;
cstr3 = &ch3; //非常量指针可以改变
pstring const cstr2 = &ch2; //常变量cstr2必须完成初始设定,与const pstring cstr1 = &ch2;等价
// cstr2 = &ch3; 常量指针无法改变