( 27 )有如下程序:
#include
using namespace std;
class test {
private:
int a;
public:
test () {cout$amp;test ( int a ) {cout$amp;test ( const test & _test )
{
a=_testa;
cout$amp;}
test () {cout$amp;};
int main ()
}
test A ( 3 )
return0;
运行时输出的结果是
A ) 3
B ) constructor
destruclor
C ) copy constructor
dstructor
D ) 3