www.gusucode.com > C++经典语法与应用实例源码源码程序 > C++经典语法与应用实例源码源码程序\code\Main\Main.cpp
//Download by http://www.NewXing.com #include <iostream.h> #include "Animal.h" #include "Fish.h" void fn(Animal *pAn) { pAn->breathe(); } void main() { //Animal an; //an.eat(); // an.breathe(); Fish fh; Animal *pAn; pAn=&fh; fn(pAn); }