K
Kamil Grymuza
Hi
Is it possible to have a name of enumerated value in string somehow?
enum {
ID1 = 1,
ID2=2,
}
And can I somehow make something like
cout<<ID1<<endl; and heve printed "ID1" not 1?
And also is it possible to call a variable having only string with it's
name. i.e. I have a string: "variable_name" and I want to do something like
variable_name=value;
Is it possible?
Thanks very much
Is it possible to have a name of enumerated value in string somehow?
enum {
ID1 = 1,
ID2=2,
}
And can I somehow make something like
cout<<ID1<<endl; and heve printed "ID1" not 1?
And also is it possible to call a variable having only string with it's
name. i.e. I have a string: "variable_name" and I want to do something like
variable_name=value;
Is it possible?
Thanks very much