Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Need your help

Need your help

Scheduled Pinned Locked Moved C / C++ / MFC
c++algorithmsdata-structureshelp
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nisha00000
    wrote on last edited by
    #1

    Hi friends ...i need your help for sorting linked list program in C++ i forget it in data structure please help me regards nisha

    L S 2 Replies Last reply
    0
    • N nisha00000

      Hi friends ...i need your help for sorting linked list program in C++ i forget it in data structure please help me regards nisha

      L Offline
      L Offline
      laksh2204
      wrote on last edited by
      #2

      I hope this link will help you.... http://datastructures.itgo.com/lists/dynamic/sort.htm[^] However, in c++ you can use stl::list which have its sort function inbuilt. check this... http://msdn.microsoft.com/en-us/library/kz841ss7(VS.71).aspx[^] Laksh

      1 Reply Last reply
      0
      • N nisha00000

        Hi friends ...i need your help for sorting linked list program in C++ i forget it in data structure please help me regards nisha

        S Offline
        S Offline
        super_ttd
        wrote on last edited by
        #3

        use std::sort() algorithm:

        std::vector<int> v;
        v.push_back(4);
        v.push_back(2);
        v.push_back(7);
        std::sort(v.begin(), v.end());

        sort() works the same with std::list and any kind of container...


        R 1 Reply Last reply
        0
        • S super_ttd

          use std::sort() algorithm:

          std::vector<int> v;
          v.push_back(4);
          v.push_back(2);
          v.push_back(7);
          std::sort(v.begin(), v.end());

          sort() works the same with std::list and any kind of container...


          R Offline
          R Offline
          Rathore Amit
          wrote on last edited by
          #4

          do you still need any help ?

          N S 2 Replies Last reply
          0
          • R Rathore Amit

            do you still need any help ?

            N Offline
            N Offline
            nisha00000
            wrote on last edited by
            #5

            Thanks for my re-players my problem is solved...

            1 Reply Last reply
            0
            • R Rathore Amit

              do you still need any help ?

              S Offline
              S Offline
              super_ttd
              wrote on last edited by
              #6

              Member 2023561 wrote:

              do you still need any help ?

              :confused::confused::confused: why did you say this to me ?


              R 1 Reply Last reply
              0
              • S super_ttd

                Member 2023561 wrote:

                do you still need any help ?

                :confused::confused::confused: why did you say this to me ?


                R Offline
                R Offline
                Rathore Amit
                wrote on last edited by
                #7

                sorry, I thought if you still need any help in Data Structure.

                S 1 Reply Last reply
                0
                • R Rathore Amit

                  sorry, I thought if you still need any help in Data Structure.

                  S Offline
                  S Offline
                  super_ttd
                  wrote on last edited by
                  #8

                  Member 2023561 wrote:

                  sorry, I thought if you still need any help in Data Structure

                  are you on crack ? i'm still not the one who asked the question ! what makes you think I need explanation about such things ?


                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups