Ooops. Didn't notice that....It's ok, though. I pretty much started all over again and now everything seems to work ok. However, my teacher wants me to use a counter to count the number of companies...
Type: Posts; User: orangePeel
Ooops. Didn't notice that....It's ok, though. I pretty much started all over again and now everything seems to work ok. However, my teacher wants me to use a counter to count the number of companies...
Hi guys. Can you look over my program and see what I have done wrong (lots of things I'm sure....). I never thought I would post my work here for safety reasons, but I am very lost so....
This is...
Hi. I have to write a program that reads from a text file, which contains a list of stock hourly prices and the company names. Something like this:
78.52 82.56 75.10 71.97 Water Company
22.40...
Thanks! I have another question. How do you print a string with the white space? When I read the file, I used fscanf, and it read the white spaces in front of the company names. So when I print it,...
Oh. It worked. Thanks! If I have to sort the array of structures alphabetically, what would be the most efficient way?
Yea. I noticed when I made companyName into a char array, it read fine. My professor wants it as a pointer though...How do I use malloc to allocate memory for this pointer? It's in a structure, so is...
Hi. I have to write a program that reads from a text file, which contains a list of stock hourly prices and the company names. Something like this:
78.52 82.56 75.10 71.97 Water Company
22.40...
Oh ok. Is there anyway to combine lname[] and fname[] into one array instead? My teacher told us to only use two 2D arrays: one for the score, and one for the names(first+last). I saw somewhere on...
Hi. So if I have a file that has a list of scores and the name of the student, how am I going to read the scores and names, and print to output? For example, the text file will look like:
83 75 89...
Ahh ok. Yea. I haven't learned binary seach and other sorting methods, so how would I do this? Is there a way to get each character from the file and sort them as they come? I don't want anybody to...
I'm just in an intermediate class, so I don't think I'm doing anything super complicated. He told me the function would be similar to an insertion sort, but not exactly the same..
Hi. So I have to write a function that reads letters one at a time from a text file, such as (aBCdefG) using fgetc(). However, each character needs to be inserted into the array in ascending ASCII...