P
panthera
Hi,
I have a problem regarding generating variable names in my
program.Suppose I have 10 variables b0,b1,b2...b9.They are NOT in an
array.And I want to randomly select one of them and get its value.So I
pick a random number between 0 and 9 and concat it with 'b' to get the
name of this variable.But how do I get the value of this variable?
I tried to define a macro using b##num,but it results in bnum instead
of b5 for example.
Thx
panthera
I have a problem regarding generating variable names in my
program.Suppose I have 10 variables b0,b1,b2...b9.They are NOT in an
array.And I want to randomly select one of them and get its value.So I
pick a random number between 0 and 9 and concat it with 'b' to get the
name of this variable.But how do I get the value of this variable?
I tried to define a macro using b##num,but it results in bnum instead
of b5 for example.
Thx
panthera