• 2022-06-29
    class A {[br][/br]public:[br][/br] static void f( ) {[br][/br] A * ps[2] = new A[2]{ }; //1[br][/br] A ** pps = new A*[2]{ }; //2[br][/br] delete[2] ps; //3[br][/br] delete ps[0]; delete ps[1]; //4[br][/br] delete[ ] ps; //5 delete[ ] pps; //6[br][/br] delete pps[ ]; //7 }[br][/br]}; 哪些行是错误的:
    A: 1所在行
    B: 2所在行
    C: 3所在行
    D: 4所在行
    E: 5所在行
    F: 6所在行
    G: 7所在行
  • 举一反三