rendered paste body/* Author: Laizerox */
/* pelaaja.h on ... */
#include <iostream>
using namespace std;
#include <string>
//pelaaja luokka tässä määrittellemme ja kutsumme kaikkei roska :)
class Pelaaja
{
private:
string name;
int age;
float money;
bool isSmoker;
bool male;
public:
Pelaaja()
{
name = "";
age = 0;
money = 0;
isSmoker = false;
male = false;
}
Pelaaja(string name, int age, int money, bool isSmoker, bool male)
{
this->name = name;
this->age = age;
this->money = money;
this->isSmoker = isSmoker;
this->male = male;
}
string TellName()
{
return name;
}
int TellAge()
{
return age;
}
void TellSex()
{
}
void TellSmoker()
{
}
void ChangeName(string name)
{
this->name=name;
}
void SetSmoker()
{
}
};
//////////////////////////////////////////////////////////////////////
/* Author: Laizerox */
/* main.cpp */
#include <iostream>
using namespace std;
#include "pelaaja.h"
int main()
{
Pelaaja uusi = new Pelaaja("Laizerox", 16, 0, false, true);
cout << uusi.TellName() << endl;
return 0;
}