Urgent - Bubble Sort problem

This is a discussion on Urgent - Bubble Sort problem within the C Programming forums, part of the General Programming Boards category; I need to bubble sort an array that holds details of a magazine, ie name, publisher, cost etc. after the ...

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    4

    Angry Urgent - Bubble Sort problem

    I need to bubble sort an array that holds details of a magazine, ie name, publisher, cost etc. after the user has entered them in. I have to sort these by name.

    I've been told mabye to use the following:

    strcmp(string1, string2)
    }

    /*void swapmags(mag&1, mag&2)
    {
    mag temp;

    temp.name = a.name;

    but I don't know how to get this working properly?

    Cheers

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    197

    Arrow a link

    Maybe this will help!

    klausi
    When I close my eyes nobody can see me...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Bubble sort problem
    By wwwildbill in forum C Programming
    Replies: 2
    Last Post: 03-27-2009, 04:43 PM
  2. Bubble Sort Code Problem...
    By h4rrison.james in forum C Programming
    Replies: 7
    Last Post: 01-22-2009, 06:43 AM
  3. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  4. Array/Structure Bubble Sort
    By JKI in forum C++ Programming
    Replies: 3
    Last Post: 09-29-2003, 11:59 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21