Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Para
- {
- protected:
- int wartosc;
- public:
- const string klucz;
- Para (string _klucz): klucz(_klucz) {}
- int Get () { return wartosc; }
- void Set (int _wartosc) { wartosc = _wartosc; }
- };
- class Slownik
- {
- protected:
- class Wezel
- {
- public:
- Para element(/*chcialbym tu zainicjalizowac i tylko tu moge, ale nie mam co*/);
- Wezel *nast;
- Wezel(string klucz, int wartosc)
- {
- element.klucz = klucz; // a to juest dupa bo klucz jest const
- element.Set(wartosc);
- nast = NULL;
- }
- };
- ...
- }
Add Comment
Please, Sign In to add comment