OOP HomeWork

This commit is contained in:
e2hang
2025-08-11 00:01:30 +08:00
commit e8a5ca2363
119 changed files with 3187 additions and 0 deletions

17
oop_hw5/hw2/main.cpp Normal file
View File

@@ -0,0 +1,17 @@
#include <iostream>
#include <cstring>
#include "animal.h"
using std::cout;
using std::cin;
using std::endl;
int main() {
Animal a("Animal!", 100);
Lion b("Lion W", 200);
Aardvark c("Aardvark", 300);
a.who();
b.who();
c.who();
return 0;
}