📄 lion.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 + -