Search:

Type: Posts; User: CConfusion

Search: Search took 0.01 seconds.

  1. Counting the number of times a loop has run

    I need to know how many times the following loop was run and have no clue: ( I need to know how many "v"s I have calculated)




    for (i = 0; i <= D; ++i) //Counting up by one for...
  2. Replies
    11
    Views
    2,554

    Okay, I got it thanks. My next (and hopefully...

    Okay, I got it thanks. My next (and hopefully last) problem is my file doesn't give me actual numbers when I run the last bit. This is what I have: (the problem is somewhere after the "outFile" bit....
  3. Replies
    11
    Views
    2,554

    Okay, I think my problem is that the file I'm...

    Okay, I think my problem is that the file I'm reading will not always have 1,1 as it's starting values .. . so when you use fscanf ( .. . ....) ==2, it wont work for mine . . . (if I'm understanding...
  4. Replies
    11
    Views
    2,554

    Okay, I made the data read it in and I get the...

    Okay, I made the data read it in and I get the parameters for the first bit, but with the loop for the duration[i] and burnrate[i] arrays my program doesn't output the right stuff .. . this is what...
  5. Replies
    11
    Views
    2,554

    Hey, I tried this and it didn't was successful ....

    Hey, I tried this and it didn't was successful . .. but didn't give me the array, and said that the if(fscanf) bit had "too many arguments for format"

    Any suggestions?
  6. Replies
    11
    Views
    2,554

    Trouble Reading Data from Files

    I have a file with numbers that I need for calculations and want to open the file, read the data and put the data in specific variables. The file has non-zero values, but my program just outputs...
  7. Replies
    3
    Views
    1,534

    sorry, since some of the data has more than one...

    sorry, since some of the data has more than one value per line.

    should it be while (fscanf(inFile, "%f", &x) . . . and how would i let the 'x' change for each variable i put in
  8. Replies
    3
    Views
    1,534

    I just am not sure what should go inside the...

    I just am not sure what should go inside the "while (fscanf(inFile, "%f", . . . )" bit .. . i haven't even made it far enough to run my program yet.
  9. Replies
    3
    Views
    1,534

    Problem with reading data files

    I'm confused as to how I can read a file like this: (any help/advice would be greatly appreciated! Thanks)

    Params
    0
    1
    2
    3
    4
    1,3
    Data
Results 1 to 9 of 9