Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Operator Overload
//g++ 5.4.0 #include <iostream> struct Test{ int out; Test():out(0){} Test& operator()(int n){ out+=n; return *this; } Test& operator[](int n){ out-=n; return *this; } }; int main() { std::cout << "Hello, world!\n"; std::cout << Test()(1)[3](5)[7].out; }
run
|
edit
|
history
|
help
0
sd2
Sort array of 0's and 1's
unique_list
synowie abrahama
Вариант универсального указателя.
WeekAgenda
IAR compiler bug test code
Test 19(2020)
CPP - Arrays - Ex.3
finding counting multiple no that became a no