Search:

Type: Posts; User: orangePeel

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    2,016

    Ooops. Didn't notice that....It's ok, though. I...

    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...
  2. Replies
    7
    Views
    2,016

    Hi guys. Can you look over my program and see...

    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...
  3. Replies
    7
    Views
    2,016

    Reading a file to linked lists?!

    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...
  4. Replies
    8
    Views
    1,392

    Thanks! I have another question. How do you print...

    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,...
  5. Replies
    8
    Views
    1,392

    Oh. It worked. Thanks! If I have to sort the...

    Oh. It worked. Thanks! If I have to sort the array of structures alphabetically, what would be the most efficient way?
  6. Replies
    8
    Views
    1,392

    Yea. I noticed when I made companyName into a...

    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...
  7. Replies
    8
    Views
    1,392

    Readinga file to an Array of Structures

    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...
  8. Replies
    3
    Views
    4,525

    Oh ok. Is there anyway to combine lname[] and...

    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...
  9. Replies
    3
    Views
    4,525

    Reading from a file and 2D Array?

    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...
  10. Replies
    11
    Views
    1,340

    Ahh ok. Yea. I haven't learned binary seach and...

    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...
  11. Replies
    11
    Views
    1,340

    I'm just in an intermediate class, so I don't...

    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..
  12. Replies
    11
    Views
    1,340

    C Programming: Arrays and Sorting?

    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...
Results 1 to 12 of 12