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...
Type: Posts; User: CConfusion
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...
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....
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...
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...
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?
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...
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
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.
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