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
chocolate Distribution Problem
1
Exempel 4
Fundamentos de programación. Tema 7. Ejercicio 6. Con funciones.
Age
CurDayMessage
ConvHull
g++ -g bug
Biggest even palindrom
Extended Euclidean Algorithm