标签:poi 一个 左值 移动 logs value end and array
3 char c; 4 string s; 5 const int a1 = 10; 6 7 int main() 8 { 9 cout << p << endl; 10 cout <<"a " <<a << endl; 11 cout <<"c "<< c << endl; 12 cout <<"s"<< s << endl; 13 char ch = ‘\0‘;//char ch=0; 14 cout << "ch" << ch << endl;
后面接2、3、4、5的代码
1 int a2 = 1; 2 int *p2 = &a2; 3 cout << p2 << " " << &a2 << endl;
int **p3 = &p2; cout << p3 << " " << &p2 << endl; cout << *p3 << " " << p2 << endl;
1 cout << p2 << " "<<p2 + 1 << endl;
1 int array[2] = { 1, 2 }; 2 p2 = array; 3 cout << p2 + 1 << " " << &p2[1] << endl;
标签:poi 一个 左值 移动 logs value end and array
原文地址:http://www.cnblogs.com/hchacha/p/7295877.html