Posted on 2011-03-07 19:29
點(diǎn)點(diǎn)滴滴 閱讀(172)
評論(0) 編輯 收藏 引用 所屬分類:
02 編程語言
class test5
{
public:
test5():mabc(0)
{
}
private:
std::string mabc;
};
int _tmain(int argc, _TCHAR* argv[])
{
test5* test55 = new test5();//報(bào)錯(cuò),初始化字符串為一個(gè)空指針
delete test55;
}