Variables Referencing

 

Hi

I would like to reference extern variables as follows. How can I do this? thks

extern lot1=0.1;

extern lot2=0.2;

extern lot3=0.3;

//and so forth until a certain no eg 10

:

extern lot10=1.0

double LotArray[];

for(int i=1; i<11; i++)

{

LotArray[i]=loti?? ;

}

 
It is impossible, sorry. Memory pointers are not supported
 

Simple:

LotArray[0]=Lo11;

LotArray[1]=Lot2;

and so forth, no loop here.

 


maybe

inside the init(){ or start(){

double LotArray[] ={ lot1, lot2, lot3, lot4 ...... lot11 };

Reason: