Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
static property
//g++ 5.4.0 #include <iostream> using std::cout ; struct Math{ static double Pi; static int pow(int base, int n); }; double Math::Pi = 3.1415926; int Math::pow(int b, int n){ int ans = 1; while(n--){ ans *= b; } return ans; } int main() { int r = 10; cout<< Math::pow(r,2) * Math::Pi; return 0; }
run
|
edit
|
history
|
help
0
decode
Matrix spiral print
Bimap operations
Binary search on sorted array
cpp ex 3 - solution
Test 5(2020)
string_match
replace-30-Seconds-of-C++
dijkstra
Привет Linux