Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
frndclass
//g++ 5.4.0 #include <iostream> using namespace std; class house; class home { int a,b; public: friend class house; void getab() {cout<<"enter a and b"<<endl; cin>>a>>b; } }; class house { public: void putab(home h) { cout<<"a="<<h.a; cout<<"b="<<h.b<<endl; } }; int main() { home h; house b; h.getab(); b.putab(h); return 0; }
run
|
edit
|
history
|
help
0
Dar
list
TwoVarRegression
2d array sum
Template arguments pack
BintTree vertical sum
Divide
merge-sort
Привет Linux
MCM