Search:

Type: Posts; User: DBB

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    964

    Putting limits on values taken from a file

    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;
    ...
  2. Replies
    3
    Views
    2,298

    Thanks

    Thanks, I think I have sorted out the problem:)
  3. Replies
    3
    Views
    2,298

    Using floats in conditional statements

    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++)
    {
    ...
Results 1 to 3 of 3