This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| #ifndef SHIFTERS_H | |
| #define SHIFTERS_H | |
| /** | |
| * This work is licensed under a Creative Commons, | |
| * Attribution-NonCommercial-ShareAlike 3.0 Unported License. | |
| * http://creativecommons.org/licenses/by-nc-sa/3.0/ | |
| * | |
| * You may copy, tweak, and build upon this work non-commercially | |
| * as long as 1. The author is credited and 2. You license the modified |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| #ifndef SHIFTERS_H | |
| #define SHIFTERS_H | |
| /** | |
| * This work is licensed under a Creative Commons, | |
| * Attribution-NonCommercial-ShareAlike 3.0 Unported License. | |
| * http://creativecommons.org/licenses/by-nc-sa/3.0/ | |
| * | |
| * You may copy, tweak, and build upon this work non-commercially | |
| * as long as 1. The author is credited and 2. You license the modified |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <map> | |
| #include <functional> | |
| #include <string> | |
| #include <iostream> | |
| using namespace std; | |
| function<void(string,string)> func; | |
| void actualABFunc(string a, string b){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <map> | |
| #include <iostream> | |
| #include <string> | |
| using namespace std; | |
| typedef void (*FuncPtr)(string,string); | |
| typedef std::map<std::string, FuncPtr> FuncPtrMap; | |
| void abFunc(string a,string b){ |
NewerOlder