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

📄 lion.cpp

📁 C++上机课的习题答案
💻 CPP
字号:
// Chapter 10 of C++ How to Program
// Debugging Problem (lion.cpp)

#include <iostream>

using std::cout;
using std::cin;
using std::endl;

#include "animal.h"
#include "lion.h"

// default constructor
Lion::Lion( int h, int w )
: Animal( h, w ) 
{
   // empty

} // end class Lion constructor

// function print definition
void Lion::print() const
{
   cout << "This animal is a lion\n";
   //Animal::print();

} // end function print


⌨️ 快捷键说明

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