const
0 人感兴趣 · 8 次引用
- 最新
- 推荐
constchar* 类型的实参与 char* 类型的形参不兼容
在C++中,const char* 类型的指针与 char* 类型的指针之间是不兼容的。const char* 类型的指针表示指向字符串常量的指针,而 char* 类型的指针表示指向字符数组或字符串的指针。由于 const char* 是指向常量的指针,不能修改指向的数据,而 char* 是指向非常


Vue 进阶(四十二):var、let、const 三者区别
ECMAScript 和 JavaScript 到底是什么关系?