icemunn
asked on
reading stored float data from external external file in VC++?
I have float data from an external file in this format:
0.1 0.4 0.6
0.3 0.5 0.7
0.2 0.9 0.3
The columns represent 'j' array and the rows represents the 'i' array.
I am using check boxes as my inputs in the form of varying combinations, where each combination represents a particular set of rows from the external float data.
e.g if my input combination is:
if(checkbox1==true&&checkb ox2==true)
{
//go to select the first two rows from the file();
}
if(checkbox1==true&&checkb ox3==true)
{
//go to select the first and third rows from the file();
}
e.t.c
could some one help me on how to implemant the function that searches or selects the corresponding rows representing the input combinations?
currently i am using a longer method, by reproducing the corresponding rows whenever a corresponding combination is satisfied.
need a shorter method
icemunn
0.1 0.4 0.6
0.3 0.5 0.7
0.2 0.9 0.3
The columns represent 'j' array and the rows represents the 'i' array.
I am using check boxes as my inputs in the form of varying combinations, where each combination represents a particular set of rows from the external float data.
e.g if my input combination is:
if(checkbox1==true&&checkb
{
//go to select the first two rows from the file();
}
if(checkbox1==true&&checkb
{
//go to select the first and third rows from the file();
}
e.t.c
could some one help me on how to implemant the function that searches or selects the corresponding rows representing the input combinations?
currently i am using a longer method, by reproducing the corresponding rows whenever a corresponding combination is satisfied.
need a shorter method
icemunn
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
here is the psudo code for this operation
make a list of lines to grab
sort list
for index = 0 to eof
if line is in list
advanc to next item in list
grab line form file
do stuff with info from file