Simple,
struct Naslov {
string ulica;
string posta;
int postna_stevilka;
TIP_NASLOVA tip;
};
struct Oseba {
string ime;
string priimek;
int starost;
Naslov naslov;
};
Will become
say, Oseba.h first,
class Oseba {
private:
string ime;
string priimek;
int starost;
Naslov naslov;
public:
string getIme();
string getPriimek();
int getStarost();
.
.
.
void setIme(string value);
void setPriimek(string value);
.
.
.
};
Now Oseba.cpp with all the implementations of these functions...
include "Oseba.h"
Oseba::getIme(){return this->ime;}
.
.
.
Similarly, do this for Naslov, also, create a Constant.h which will include the enum you have declared, and then add this header file to each of ur files (Oseba.h/Naslov.h)
Finally, your "main.cpp" will include these headers files and you'll be good to go!
Hope this works!
NOTE:: i have purposefully created the getter setters as it is a bad practice to access class variables like that... just use these getters where you want to access the fields. Cheers!