prefect world - -

http://blog.csdn.net/hackbuteer1/article/details/6902035

1、下面程序的正确输出结果为()

  1. class test  
  2. {  
  3. public:  
  4.     void print()  
  5.     {  
  6.         cout<<"test"<<endl;  
  7.     }  
  8. };  
  9.   
  10. int main(void)  
  11. {  
  12.     test *t = new test();  
  13.     t->print();  
  14.     t = NULL;  
  15.     t->print();  
  16.     return 0;  
  17. }  

A、编译不通过           B、运行时必然出错退出          C、运行时可能出错退出 

D、test                      E、test  test                           F、test  随机信息

posted @ 2012-04-07 20:44  A_zhu  阅读(196)  评论(0编辑  收藏  举报