View Single Post
  #5 (permalink)  
Old 08-03-2008, 09:06 AM
matt_well's Avatar
matt_well matt_well is offline
Member
 
Join Date: Jul 2008
Posts: 59
Rep Power: 0
matt_well is on a distinguished road
Default
Originally Posted by Norm View Post
What does "from 1" mean if there is only one file to read from?
Do you mean to get the first number into one variable and the next number into the second variable and the next number into the first variable and the next number into the second variable, etc ?
What is the program supposed to do? What is written into the output file?
I mean the for loop like this,

Code:
        for(int i = 1; i < maxSize; i++)
        {
            String data1 = getNextValue(process1, i);

            double sampleData1 = parseValue(data1);

        }

    
        for(int i = 2; i < maxSize; i++)
        {
            String data2 = getNextValue(process2, i);

            double sampleData2 = parseValue(data2);

        }
Then, I have problem to get this total from both of the for loop above.
Code:
double total = (sampleData1 + sampleData2);
Reply With Quote