I am accessing a file in the following way
ifstream infile("Info.txt",ios::in);
while(infile>>freq>>dbels)
{
arr1[i]=freq; //of course all the variables are declared
arr2[i]=dbels;
...
Type: Posts; User: DBB
I am accessing a file in the following way
ifstream infile("Info.txt",ios::in);
while(infile>>freq>>dbels)
{
arr1[i]=freq; //of course all the variables are declared
arr2[i]=dbels;
...
Thanks, I think I have sorted out the problem:)
I have found that I am unable to use floats in conditional statements. I wish to compare two float values, one of which is an element of an array of floats.
Example:
for(int i=0;i<n;i++)
{
...