标签:c new test error b const r on
TestA * const tm = new TestA();
TestA * tm001 = tm;
TestA * const tm002= tm;
const TestA * tm003= tm;
const TestA * const tm004 = tm;
TestA * tmp =new TestA();
const TestA * tm2 = tmp;
TestA * tm2001 = tm2;//error
TestA * const tm2002= tm2;//error
const TestA * tm2003= tm2;
const TestA * const tm2004 = tm2;
const TestA * const tm3 = new TestA ();
TestA * tm3001 = tm3; //error
TestA * const tm3002= tm3; //error
const TestA * tm3003= tm3;
const TestA * const tm3004 = tm3;
标签:c new test error b const r on
原文地址:http://www.cnblogs.com/fbwang2011/p/3866497.html