Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Callback
//Title of this code #include <iostream> using namespace std; void callback(int i) { cout << "callback " << i << endl; } void event(void(*func)(int), int i ) { func(i); } int main() { event(callback, 3); std::cout << "Hello, world!\n"; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
pow implementation
Binary search2
Empty C++
constructing object on first use as return value of (pointer to) object-returning function
C++
silnia
Continuous Sub Set with given sum
ამოცანა#3-------From adjacency matrix to the list of edges.
articulation points and bridges
cref
Please log in to post a comment.