vector的erase操作
cout格式输出

几种类型的sizeof

yichen posted @ 2014年4月01日 02:07 in Essay , 396 阅读
#include <iostream>
using namespace std;
 
int main()
    char *c ="hello";
    int *a[2][3];
    int b[2][3];
    cout << sizeof(a) << endl
        << sizeof(b) << endl
        << sizeof(c) << endl;
    return 0;
}
 
运行结果:(注意系统是32位)
24
24
4
 

 


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter