⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hour12_1b.cpp

📁 《24学时精通c++》的随书源码的下半部分。欢迎下载学习。
💻 CPP
字号:
 //Listing 12.1

 // Passing pointers to objects
 // rename to simplecat.cpp which should be added to the project in the Borland IDE
 //                      ^^^ This second part is *very* important -- it allows the
 //                          compiler and linker to find your code!



 #include <iostream>


 #include "simplecat.hpp"
 

 SimpleCat::SimpleCat()

 {

     std::cout << "Simple Cat Constructor...\n";

 }

 

 SimpleCat::SimpleCat(SimpleCat&)

 {

     std::cout << "Simple Cat Copy Constructor...\n";

 }

 

 SimpleCat::~SimpleCat()

 {

     std::cout << "Simple Cat Destructor...\n";

 }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -