C/C++里的const(1)

首先来看这样一段程序: 1 #include<iostream> 2 using namespace std; 3 int main(){ 4 char *s = "hello world"; 5 6 cout << s << endl; 7 s[0] = 'B'; 8 cout << s << endl; 9 return 0; 10
相关文章
相关标签/搜索