Can we append the prefix of a variable with an index: variable_name (index) in the aim of creating a loop over the index.
for(int s=1; s<=SYMBOLS_COUNT; s++)
ArrayResize(InputVector_Clos_P_(s),histo); /* How ? */
Is there any operator as "&" in VBA por example?
It's not possible to change a variable name dynamically (in VBA neither anyway). You need to use an array.
What are you trying to achieve ?
Thank you guys for your responses.
The goal is simply to use variables in a loop and this by intervening only on the number of variables.
@Alain : in VBA, i mean to use the variable like in the example
The aim is not to create variable but only use it, like in first example , i want to resize those three vectors only
@Stanislav: How we can apply array variable_name for the example below ? thanks in advance