• 2022-05-29
    下列程序的运行结果是 。class Stack{ char * sp ;public : Stack( ){ sp = new char[100] ; strcpy(sp , "I love China") ; cout << "在构造函数中! \n" ; } ~Stack( ){ cout << sp << endl ; delete [ ]sp ; cout << "在析构函数中! \n" ; }} ;void main( ){ Stack s ; }