#include <iostream>
using namespace std;
class User
{
  public:
  int age;
  int number;
  User()
  {
    cout << "this is User contructor\r\n";
  }
  User& operator=(const User & uer)
  {
    cout << "this is User operator =\r\n";
    return *this;
  }
  User(const User &user)
  {
    cout << "调用拷贝构造函数并为指针 ptr 分配内存" << endl;
  }
};

int main()
{
  User user;
  User c;
  c=user;
  User b=user;
  cout << "Hello World";
  return 0;
}

最新文章

  1. docker 学习过程
  2. BZOJ2134——单选错位
  3. C#中简单的继承和多态
  4. 深入javascript
  5. jQuery tab plugin
  6. iOS-KVC/KVO的理解
  7. 避免ajax请求过多,导致内存溢出,请求之后回收资源
  8. Node.js + Express + Mongodb 开发搭建个人网站(三)
  9. ajax调用action后返回list给list.jsp,显示为xml文档
  10. CSS中cursor的pointer 与 hand-备
  11. jQuery validate api(转)
  12. python 抓取糗事百科糗图
  13. flag.xls
  14. 10 windows server 2012R2 发布MVC框架网站注意事项
  15. Windows7系统中怎么Ping端口?利用telnet命令Ping 端口的方法
  16. shell while-ssh
  17. 配置Tomcat使用HTTP/2
  18. saltstack相关
  19. “微软热爱Linux“ – 心声传遍中国
  20. python 装饰器的详细理解【多次实验】

热门文章

  1. L inux系统安全及应用---暴力破解密码
  2. 5000字2021最新Python基础知识第一阶段:数据类型
  3. 家庭账本开发day01
  4. 【论文阅读】套娃之 Blog for DMP Dynamic Movement Primitives
  5. vue如何动态加载本地图片
  6. 在Java web项目中防止用户注销后使用浏览器中的“后退”按钮返回注销前页面
  7. python 实现自动部署测试环境
  8. 常见的BI软件有哪些_BI工具软件哪个好用
  9. Maven之--安装nexus 私服
  10. linux signal信号(SIGHUP、SIGINT、SIGQUIT、SIGILL、SIGTRAP、SIGABRT...........................)