concatenate variable naming

Mar 3, 2010 at 1:15am
I was wondering if it's possible to concatenate the name of variable.

for example :

if i=1 then the name would be : int variable1;
if i=2 then the name would be : int variable2 ;
etc..
but
something like -

int variable+i;
this is not the correct syntax
Mar 3, 2010 at 1:21am
as far as i know only in terms of the preprocessor with the ##-operator... but not during run-time...
Topic archived. No new replies allowed.