linear sort with names

This is a discussion on linear sort with names within the C++ Programming forums, part of the General Programming Boards category; Hi everybody i have to do a program with linear sort and i am sorting some names but i don't ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    26

    linear sort with names

    Hi everybody i have to do a program with linear sort and i am sorting some names but i don't have idea how to start can some oh help please
    C++ Is cool

  2. #2
    TransparentMember correlcj's Avatar
    Join Date
    Jun 2002
    Posts
    378

    Always a good to start here...

    Code:
    #include<iostream>
    
    int main()
    }
    cin >> whatever
    //sort()
    cout << answer
    }
    Here is a good start but look up the sort(). You can even use vectors which is a good way to sort info in my opinion. This will at the very least get you started.
    Good Luck!!
    cj
    "Be formless, shapeless, like water... You put water into a cup, it becomes the cup, you put water into a bottle, it becomes the bottle, you put it in a teapot, it becomes the teapot... Now water can flow, or it can crash, be water my friend."
    -Bruce Lee

  3. #3
    Registered User
    Join Date
    Oct 2002
    Posts
    26
    i Need more help one it this is not helping me that much and i have a code with a bubble sort but i relly need to write it in a linear sort help please
    C++ Is cool

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. vector: sort multiple fields
    By FoodDude in forum C++ Programming
    Replies: 4
    Last Post: 09-28-2005, 12:00 PM
  2. Bubble sort
    By Lionmane in forum C Programming
    Replies: 5
    Last Post: 07-09-2005, 12:30 PM
  3. threaded merge sort
    By AusTex in forum Linux Programming
    Replies: 4
    Last Post: 05-04-2005, 05:03 AM
  4. Simple sort
    By StarOrbs in forum C++ Programming
    Replies: 10
    Last Post: 03-30-2005, 01:17 PM
  5. sort array by names
    By plivermo in forum C Programming
    Replies: 5
    Last Post: 10-21-2001, 04:39 PM

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