I just meant:
Code:
std::map<std::string, int> variables;
 
variables["myVar1"] = 10;
 
std::cout << variables["myVar1"];
So you can sort of 'declare' a new variable called "myVar1", and use it (sort of like Visual Basic without the 'option explicit'). It's not exactly the same (it's really just inserting a string/int pair into a std::map and looking up the int that goes with the string), but it looks like it and it's sort of neat anyway