Hello
Is it possible to do something like this:
Something along the lines of an array containing prepared variable names distinguished solely by their index.Code:int main() { //an array of variable names is made here //(type?) name_array[2] //two names are prepared int name_array[0]; //the first variable is declared as an integer and takes on the name of the first element in name_array float name_array[1]; //the second variable is declared as a float and takes on the name of the second element in name_array name_array[0] = 1; //values are name_array[1] = 1.0; //assigned here }
Thanks