lion.cpp.txt
来自「C++上机课的习题答案」· 文本 代码 · 共 30 行
TXT
30 行
// 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 + =
减小字号Ctrl + -
显示快捷键?