Creating variables with names with strings

Is it possible to create a variable based on a string?

Say if I got a function


1
2
3
4
void f(string str)
{
    int "str";
}


something like that above, or is this impossible?
It's impossible.
You could use a map to store these values
dude.... Thats why we can declare variables as string.
Topic archived. No new replies allowed.