Thats what i just figured out. thanks for the help
Type: Posts; User: jthunder
Thats what i just figured out. thanks for the help
any examples of a double pointer with this file pointer?
lol ive made it a mess from messing with different things to figure this out
searchFile
thanks, ill try that
My program is supposed to read from a file to check number of words sentences ETC. It does this so far until I move the code into separate functions. It gives me the error that is in the topic title....
I had it really neat before but I was trouble shooting and moving stuff around. Anyway its working now, I appreciate the tip. Thanks.
It works for one or the other, but not both. If I put in both sections of code (character count and word count) it will have the word count return 0 to the counter. If I take one away, they work...
I've gotten them by using "rand() % 100;", range being 0-100. However, When I store the values into an array one by one on separate lines, I would like them to stay the same from that point on....
Doing a school project on times in a race. One question is the total time. So you have four times added together to get the total time. BUT I have to have it in the minute second format like I posted...
Im just now finishing up my project, thanks to all who gave input. But I have this one issue
/*Scanning values in for ^^ 200 m race*/
scanf("%f %f %f %f", &lcm[0], &lcm[1], &lcm[2], &lcm[3]); ...
I got this in compile time warnings
warning C4244: 'return' : conversion from 'int' to 'float', possible loss of data
it works but i get a lot of those warnings
This is what I ended doing for the fastest 50. Maybe inefficient..what do you think? Im sure there is a better way but it works..
/*Function to compute info for first race*/ float longcourse...
Thanks to all who have helped so far. I actually am almost finished. My question is how would one find the largest and smallest value in an array, when the values in the array have been entered in by...
Great. I'll get started now and post later. Thanks
Thanks for posting the link to that chapter on arrays! very helpful. I'm thinking I'm going to have to scan the values into the array and use them to answer the questions. If I have that correct I...
Thanks a lot guys. I am starting to work on it again now. Its due tomorrow at midnight so hopefully ill cover a lot of ground today. Much appreciated
Thanks for the reply. That sounds good man, ill get started and i appreciate the tips. ill be sure to post back in this thread.
First post here
Im a computer science major and my c programming class was assigned a project and i was wondering if someone could give me a push. its on arrays and functions. We use K.N. King's c...