So would a while loop be eligable in this situation?
Type: Posts; User: zac_haryy
So would a while loop be eligable in this situation?
I could make a while loop until it would reach the end of the file but I still get this error:
error C2446: '!=' : no conversion from 'int' to 'char *'
error C2040: '!=' : 'char *' differs in...
I am still having trouble with this. I dont understand the errors that I am getting. I would like to try to make a for loop so that I can scan the file in until the end of the file, but I get errors...
Well I cant get it to go with a multi-dimension array and I think that it may be easier 2 seperate arrays (maybe...). Anyways here is what I am trying and I am still getting this error:
Homework 7...
I got the fgets part to copy the first string into a buff array but i am not exactly sure how to use the sscanf function.
This is what I have, but I need to get it to store it to the arrays days. ...
How do I get rid of this error though??
error C2664: 'fgets' : cannot convert parameter 1 from 'int [40][8]' to 'char *'
I have to make this program for a computer programming class and we are given a file to input. The file input looks like this:
Nevada, IA
February, 2000
2 0.1
4 0.4
28 0
29 0.01
30 0.01
9 0
Thanks for the help!! I am going to take a look at this tomorrow.
fgets and arrays are the two that I have not learned yet.
maxorator: I would do something like this but we haven't learned any of this.
jafet : We have not learned anything about arrays either.
So I am not sure what to do next. Have gotten some...
I have came up with this code but everything prints out backwards. EX. I input 123 and it will output three, two, one. How do I fix this part?
Here is what I have so far:
#include...
So how do I make the actual conversion from number to text?
Well I have started writing a code to create this program that i have to have done by tommorow but i am stuck at the moment. Anybody please help!!
Here is the problem:
Write a prgram that...