Thread: Sorting method with student details.

  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    2

    Cool Sorting method with student details.

    Hi,

    am fresher in C programming . i would like to implement the code for student details (roll no, name, marks(m1, m2,m3),avg,tot, grade using sorting methods. like(at same code- need to use five sorting methods :- merge sort, bubble sort, insertion sort, selection sort,etc.,). Will you tell how can i develop ? any sample reference code pls.

    With kind regards...

    Danush appanadesh...
    Last edited by danush; 09-09-2010 at 01:56 AM.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    I suggest that you start by learning those five sorting algorithms that you intend to implement by reading about them and then implementing them to sort integers.

    After that, you create your struct for student details, and adapt what you implemented to sort these structs.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Sep 2010
    Posts
    2

    Smile

    Ok, i will try my best..

    Thank you ..

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sequential file program
    By needhelpbad in forum C Programming
    Replies: 80
    Last Post: 06-08-2008, 01:04 PM
  2. Replies: 2
    Last Post: 01-22-2008, 04:22 PM
  3. Database assignment is Killing me!
    By Boltrig in forum C Programming
    Replies: 2
    Last Post: 11-29-2007, 03:56 AM
  4. Best sorting method to use
    By pelp in forum C++ Programming
    Replies: 3
    Last Post: 03-12-2003, 12:30 AM
  5. Sorting words with a fast, effincient sorting method
    By Unregistered in forum C++ Programming
    Replies: 19
    Last Post: 07-12-2002, 04:21 PM