I set the size of the array like this.
QList<double> array1, array2;
for (i=0; i<1701; i++) {array1.append(0.0); array2.append(0.0);}
void readRef()
{
array1[0]=2.45; array2[0]=5.17;
array1[1]=3.78; array2[1]=3.12;
.....
array1[1700]=4.67; array2[1700]=0.12;
}
QList<double> array1, array2;
for (i=0; i<1701; i++) {array1.append(0.0); array2.append(0.0);}
void readRef()
{
array1[0]=2.45; array2[0]=5.17;
array1[1]=3.78; array2[1]=3.12;
.....
array1[1700]=4.67; array2[1700]=0.12;
}
To copy to clipboard, switch view to plain text mode
If the size of double differs between the two systems, then there is nothing I can do about that, right? Would you recommend using "const" with array definition somehow?
I think it makes sense that the two systems do the linking differently. But how would I change the way the linking is done?
Bookmarks