#pragma once
#include <vector>
#include <iostream>
#include <string>
#include <math.h>
#include <conio.h>
#include <fstream>
class Imp
{
public:
std::string Name;
Imp(std::string c)
{
Name = c;
}
virtual void DisplayName();
};
const std::vector<std::string> explode(const std::string& s, const char& c);
class Asset:public Imp
{
private:
double Value;
double ProfitPercentPerYear;
double FlatProfitPerYear;
public:
int ID;//1- Lokata 2- Konto Emerytalne 3- nieruchomosc
double SimulateProfit(int Years);
void DisplayName();
double GetValue();
std::string GetName();
double GetProfitPercent();
double GetFlatProfit();
void SetValue(double v);
void SetName(std::string N);
void SetProfitPercent(double PerCent);
void SetFlatProfit(double Flat);
void SaveState(std::fstream& File);
Asset& operator +=(const Asset& Modified);
Asset& operator -=(const Asset& Modified);
Asset(double PerCent, double Flat, double value,std::string c,int id):Imp(c)
{
this->Value = value;
this->ProfitPercentPerYear = PerCent;
this->FlatProfitPerYear = Flat;
this->ID = id;
}
Asset():Imp("")
{
this->Value = 0;
this->ProfitPercentPerYear = 0;
this->FlatProfitPerYear = 0;
this->ID = 0;
}
};
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}