C
cpp
I am trying to find out how to assign the name of a variable (aka
identifier) given a string for this name. For example:
string s = "whatever";
How can I obtain the following expression:
double whatever = 4;
As you can see, I want the variable name to be taken from a string's value.
This is killing me.
thx alot
identifier) given a string for this name. For example:
string s = "whatever";
How can I obtain the following expression:
double whatever = 4;
As you can see, I want the variable name to be taken from a string's value.
This is killing me.
thx alot