c++实例研究

从0开始

  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  104 随笔 :: 0 文章 :: 20 评论 :: 0 Trackbacks
/*  
*    Doc Name: Private copy constructor with none defination
*    Prob Id: -
*    Serial Id: A3
*    Author: -
*    Date: 10/10/28
*/



#include 
"stdafx.h"
#include 
<iostream>
using namespace std;

class A
{
public:
    A()
{}
public:
    
void foo(){ A inst; A inst2(inst); return;}
private:
    A(
const A& src);
}
;

int _tmain(int argc, _TCHAR* argv[])
{
    A instA;
//    A instA2(instA);
    return 0;
}


posted on 2010-10-28 12:29 elprup 阅读(194) 评论(0)  编辑 收藏 引用

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理