sizeof string
摘要:char a[] = "hello";string s = "hello";cout<<sizeof(a)<<endl;cout<<sizeof(s)<<endl;cout<<sizeof(s.c_str())<<endl; 输出为6324最后一个c_str返回的是char*,所有指针的长度都为4...
阅读全文
posted @ 2014-06-06 16:09
posted @ 2014-06-06 16:09
posted @ 2014-06-06 15:44
posted @ 2014-06-06 14:51
posted @ 2014-05-21 20:41