Search:

Type: Posts; User: deathrattle

Search: Search took 0.01 seconds.

  1. Replies
    27
    Views
    2,421

    i tried your code and it didn't swap any at all....

    i tried your code and it didn't swap any at all. im trying to do it with a selection sort instead of bubble if that is at all possible.
  2. Replies
    27
    Views
    2,421

    i removed the second trav++; and it is still only...

    i removed the second trav++; and it is still only swapping the top name that is out of order to its correct spot.
  3. Replies
    27
    Views
    2,421

    are you referring to the trav++; after the if?...

    are you referring to the trav++; after the if? i'm playing around with all kinds of stuff and cannot figure out which section of the loop you are referring to.
  4. Replies
    27
    Views
    2,421

    allllright, now we're gettin somewhere. i took...

    allllright, now we're gettin somewhere. i took out the pass++; and more whoabuddys came up but it still wasnt swapping. in the call of the swap function, i changed &identity[pass] to &identity[pass +...
  5. Replies
    27
    Views
    2,421

    i put a "WHOABUDDY" at the bottom of the swap...

    i put a "WHOABUDDY" at the bottom of the swap function. it printed the list of names, WHOABUDDY twice, and then the list of names again still unsorted. the two whoabuddy's look odd to me as it is...
  6. Replies
    27
    Views
    2,421

    alrighty, its back to pointers. again it compiles...

    alrighty, its back to pointers. again it compiles but still no swaps.



    void swap(STUDENT *pN1, STUDENT *pN2)
    {
    STUDENT temp;

    temp = *pN1;
    *pN1 = *pN2;
  7. Replies
    27
    Views
    2,421

    alright, i changed it from an array to just one 1...

    alright, i changed it from an array to just one 1 temp variable. i then changed them from pointers to just objects. i then had to change the & symbols from the calling function. it compiles with no...
  8. Replies
    27
    Views
    2,421

    and i've gotten it to give no warnings now, but...

    and i've gotten it to give no warnings now, but it is still not swapping. baby steps :D

    [CODE]
    void swap(STUDENT *pN1, STUDENT *pN2)
    {
    STUDENT *temp[MAX];

    *temp = pN1;
    ...
  9. Replies
    27
    Views
    2,421

    well after a few replies on different threads by...

    well after a few replies on different threads by many different people. i've noticed that a lot ask for more code posted, so i thought id just cancel out that, but i apologize if it bothers you :/
  10. Replies
    27
    Views
    2,421

    oops, that first one i didnt mean to send. i had...

    oops, that first one i didnt mean to send. i had clicked on preview and went back to edit i thought. its early. sorry :/
  11. Replies
    27
    Views
    2,421

    this is what i'm getting it to print $...

    this is what i'm getting it to print



    $ ./a.out

    Created by

    Name Level SSN Birthdate
    ---- ----- --- ...
  12. Replies
    27
    Views
    2,421

    Can't figure out how to swap

    With this program, I'm trying to open a file that contains a list of people's names, birth dates, grade numbers, and SSN. I can get it to read the pieces from the file and print them but I'm trying...
  13. Replies
    2
    Views
    1,081

    cannot figure out fscanf

    so in my test file, there are two numbers. the first is the seed and the second is how many times a pair of dice will roll. i cannnnnnnot figure out how to get fscanf to read in the values so that i...
  14. Replies
    3
    Views
    1,295

    help with a number counting function

    in the program, there is a section where you generate a series of numbers that is seeded from a user's input. the user also determines how many numbers should be generated. this part is fine,...
  15. Replies
    3
    Views
    1,689

    trouble printing linked list

    thank you for helping
  16. Replies
    3
    Views
    1,325

    trouble printing linked list

    please delete this thread
Results 1 to 16 of 18