Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions animals/animal.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
#include "animal.h"

#include <sstream>
#include <iostream>
#include <string>
using namespace std;

inline ostream& operator <<(ostream& os, const Animal& animal) {
return os << animal.about();
}

int main() {
return 0;
}
Wolf v1(4, 5, 8);
//v1.setAverage_life_expectancy(10);
//v1.setFirst_beasts_count(11);
//v1.setNumber_of_species(5);
cout << v1.about() << endl;
Hare h1;
h1.setRunning_speed_km_ch(5);
h1.setFirst_beasts_count(10);
h1.setNumber_of_species(99);
cout << h1.about() << endl;
}