Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A
- {
- int x; //zmienna klasy a
- public:
- friend class B;
- }
- class B
- {
- int y;
- public:
- void funkcja(); // do tej funkcji potrzebuje wczytac zmienna x z klasy A
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement