-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
33 lines (29 loc) · 1.04 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <cstdlib>
#include <iostream>
//#include <string>
#ifdef WIN32
#include "utils/colors.h"
#else
#include "utils/colourslinux.h"
#endif
#include "class/human.h"
#include "class/sim.h"
int main(int argc, char const *argv[])
{
Sim Sim;
std::cout << "\e[1mcpplife\e[0m\nbased on bumet1's jslife\nenjoy i guess" << std::endl; //more like the most painful to debug [lang]life xd
Human novus;
novus.setage(17);
novus.setfirstname("asshole");
novus.setlastname("mcgee");
std::cout << novus.getfullname() << " is " << green << novus.getage() << white << std::endl;
Human hUman569;
hUman569.setage(32);
hUman569.setfirstname("EternalPain");
hUman569.setlastname("McEternalPainFace");
std::cout << hUman569.getfullname() << " is " << green << hUman569.getage() << white << std::endl;
hUman569.setage(33);
std::cout << hUman569.getfullname() << red << " died " << white << "at age " << green << hUman569.getage() << white << " from " << blue << "drug addiction" << white << std::endl;
std::cin.ignore();
return 0;
}