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
Adress
BinomialPoisson
D. Traveling Graph
2
Test
data locality - fast example
at.cpp
append
cpp permutations
Boggle Game