Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
c++functor
#include<iostream> class Func { public: void operator()(int num) { std::cout<< "Num: " << num << std::endl; } }; struct Bar { void operator()() { std::cout << "Bar" << std::endl; } }; int main() { Func foo; foo(5); Func()(5); Bar()(); return 0; }
run
|
edit
|
history
|
help
0
Unicode_wcout
Preserving strict aliasing Union example
Hangman
This is the first one
Sum of numbers in a series using sum formular
MSVC initializer code
parantheses matching using stack in C++ - test
Is a Union Member's Destructor Called
hangman
Unicode_write2file