std::string VariableName = "name";
int (VariableNameHere) = 5;
From my understanding of c++ what I am asking is most likely impossible. If it is please post possible alternative solutions. Thanks!
std::string VariableName = "name";
int (VariableNameHere) = 5;
From my understanding of c++ what I am asking is most likely impossible. If it is please post possible alternative solutions. Thanks!
As you have it is not possible, you would need to have some kind of look-up system, such as:
std::map<std::string, int> variables;
...
variables["name"] = 5;