Sort command in unix+ c program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arunraj2002in
    New Member
    • Jun 2007
    • 22

    Sort command in unix+ c program

    I want to write a C program which is same as “sort” command of UNIX ?
    Please help me in doing my project.
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    Originally posted by arunraj2002in
    I want to write a C program which is same as “sort” command of UNIX ?
    Please help me in doing my project.
    Sure, what do you have so far?

    Comment

    • arunraj2002in
      New Member
      • Jun 2007
      • 22

      #3
      Originally posted by sicarie
      Sure, what do you have so far?
      -- nothing -- give a outline how to proceed, that will be helpful.

      Comment

      • sicarie
        Recognized Expert Specialist
        • Nov 2006
        • 4677

        #4
        Originally posted by arunraj2002in
        -- nothing -- give a outline how to proceed, that will be helpful.
        The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

        Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.

        Then when you are ready post a new question in this thread.

        MODERATOR

        Comment

        • arunraj2002in
          New Member
          • Jun 2007
          • 22

          #5
          Originally posted by sicarie
          The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

          Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.

          Then when you are ready post a new question in this thread.

          MODERATOR

          It will be helpful if u can give me an idea how to proceed atleast..

          Comment

          • sicarie
            Recognized Expert Specialist
            • Nov 2006
            • 4677

            #6
            Originally posted by arunraj2002in
            It will be helpful if u can give me an idea how to proceed atleast..
            You do no work and expect me to tell you what to do? Not even willing to try to break down the problem?

            Okay, try looking at the Linux implementation of the sort program (as it is open source).

            Comment

            • weaknessforcats
              Recognized Expert Expert
              • Mar 2007
              • 9214

              #7
              Get a copy of Teach Yourself Data Structures and Algorithms in 24 Hours by Robert LaFore.

              The logic for the sort plus code is there.

              You have to get used to doing research in order to be able to work in C or C++.

              Comment

              Working...