Search:

Type: Posts; User: Cgmgator

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    2,002

    Awesome, I'll try it out! Thanks a lot!

    Awesome, I'll try it out! Thanks a lot!
  2. Replies
    11
    Views
    2,002

    Awesome, I'll try it out! Thanks a lot!

    Awesome, I'll try it out! Thanks a lot!
  3. Replies
    11
    Views
    2,002

    Of course...its a flush function from a scanf!!!...

    Of course...its a flush function from a scanf!!! It's during the scanf!!! What is it looking for during the scanf???
  4. Replies
    11
    Views
    2,002

    I'm throwing it away if it's a character, but not...

    I'm throwing it away if it's a character, but not if it's the only value left at EOF. Does that sound right? I mean, I don't wanna lose the last value in a file if the file has an odd number index or...
  5. Replies
    11
    Views
    2,002

    Yes sir. I'm reading a text file and placing it...

    Yes sir. I'm reading a text file and placing it into an array. I need to read two consecutive numbers and count those as a line. The first value read that is not a number invalidates that line and I...
  6. Replies
    11
    Views
    2,002

    Flushing a line in an array...

    I have a quick question...I'm sorting an array with only numbers in it, two per line. I wanna flush the first string of non-numbers and the other value in that line, if there is one of course,...
  7. I just wanna thank you guys, lazer, whiteflags,...

    I just wanna thank you guys, lazer, whiteflags, and Mr. Hunter. I've been working on this program pretty much all day again today. I only have a few bugs left and to clean it up. Can't thank you...
  8. Does this look right? I am so sorry to keep...

    Does this look right? I am so sorry to keep bothering you guys, but I won't be able to sleep until I get this right...




    void sortArray(float nums[], int last)
    {
    int smallest;
    int...
  9. I wonder if maybe my problem is the value that I...

    I wonder if maybe my problem is the value that I passed for the last index in the array. I defined the SIZE = 90. I set a count to stop at 90. Would my value of last be the SIZE - count? Or maybe...
  10. I think when smallest gets to a value of 0, it...

    I think when smallest gets to a value of 0, it stores the 0 in temp, then for some reason the 0 gets passed to the rest of the printed arrays...I added the if..else statement to try to find some way...
  11. You're right, I actually had ...

    [/QUOTE]

    You're right, I actually had




    for (int walk = current + 1; walk <= last; walk++)
  12. Yes...it now prints the array, but it doesn't...

    Yes...it now prints the array, but it doesn't sort from lowest to highest. Ran it with another file with no zero's and it sorted it just fine. I've been at this for hours, lol. I just can't get it...
  13. Having trouble sorting an Array that has a zero in it.

    Hey guys, I was just wondering if someone could take a look at my code real quick. I'm sorting an array, and when it comes to a zero it obviously prints zero's from that point on. I'm using a...
Results 1 to 13 of 13