Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
How to access member function of a class using scope
//g++ 5.4.0 #include <iostream> using namespace std; class sq{ public: int a=6; int func(); }; int sq::func(){ return a*a; } int main() { class sq s; cout << "6 by 6 ="<<s.func(); }
run
|
edit
|
history
|
help
0
Microsoft - MaxEmployeeAttendence (R repititions - 1st step towards DP.)
Functions-Part I
work
MatrixVectorConversion
Fungsi
Scemo
2
gcc set_terminate
Sequence point and array
kroliki