#include <iostream> #include <string> #include <hash_set> using namespace std; void Func_Execution(string &s){ int k=stdext::hash_value(s); #if(_MSC_VER ==1500) switch (k) { case -336300864: GETBATTERYCALLSIGNS(); break; case -1859542241:GETGUNIDS(); break; case 323320073:Foo(); // here int k=323320073 for string s="Foo" break; case 478877555:Bar(); break; defalut :Exit(); break; } #endif }
void main(){ string s="Foo"; Func_Execution(s); }
std::map
std::unordered_map
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)