Ok, I am having a problem that my arrays will not come out of my nested loops. Only the last value will come out and if I try and print another value it comes up with a crazy small value.
Have you debug stepped it to make sure the array is being populated correctly by the read routine?
Again, not all code is there.. i.e. I don't know how scalefile is defined etc., or where z or k is defined and are they initialised etc. Not much to go on sadly.
int errorcode;
string userinputpro;
string userinputnam;
int scaleinput;
int z=0;
int x=0;
int k=0;
string scale1[z];
string scale2;
double scale3[k];
double scalefile[z];
I did debug it and I updated my above code to show where it printed correctly
I am seeing a lot of problems and also the program fails to compile under Visual Studio.
What is the reason for declaring z and k to 0, then using those variables to set the size of scale1, scale3 and scalefile? - are you thinking those will automatically adjust in size as you adjust z and k?