Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- #include <queue>
- #include <list>
- #include <map>
- #include <vector>
- #include <utility>
- #include <iostream>
- #include <thread>
- #include <Windows.h>
- #include <stdio.h>
- using namespace std;
- typedef void (*fp)();
- void simpletest1(){
- cout << "test1";
- }
- void simpletest2(){
- cout << "test2";
- }
- int main()
- {
- list<fp> generalHandlers;
- generalHandlers.push_back(simpletest1);
- generalHandlers.push_back(simpletest2);
- for (auto it = generalHandlers.begin(); it != generalHandlers.end(); ++it){
- (*it)();
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement