string的sizeof

int main()
{
    string str[] = {"12345", "12", "12"};
    cout << sizeof(string) << endl;
    cout << sizeof(str) << endl;

    return 0;
}

 

 

4
12

posted @ 2013-09-05 11:24  helloweworld  阅读(209)  评论(0编辑  收藏  举报