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. Managed C++/CLI
  4. Need help....

Need help....

Scheduled Pinned Locked Moved Managed C++/CLI
c++visual-studiographicsalgorithmshelp
4 Posts 2 Posters 3 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.
  • A Offline
    A Offline
    Akandel
    wrote on last edited by
    #1

    Create an STL vector of 10 integers and store initial values (0 to 9 is fine). Use the std::random_shuffle algorithm to shuffle the list. Print the list. (try to do this one with an std iterator) Use the std::sort algorithm to sort the list. Print the list again. (you can use for each instead of an iterator) See if you can locate the documentation for random_shuffle and sort either in VS help or with Google. Once you leave this class, you will need to be able to find information like this on your own. Checklist 1. Did NOT create a folder for the solution 2. Project/solution named correctly 3. Correct comments at top 4. Consistent indentation 5. Good variable names 6. Overall neat organization 7. Comments in code explain what's being done 8. Correct division of code into .h and .cpp files 9. Use of #pragma once in .h files (or, #ifndef) 10. #include "stdafx.h" in cpp files (or, suppress pch)

    A 2 Replies Last reply
    0
    • A Akandel

      Create an STL vector of 10 integers and store initial values (0 to 9 is fine). Use the std::random_shuffle algorithm to shuffle the list. Print the list. (try to do this one with an std iterator) Use the std::sort algorithm to sort the list. Print the list again. (you can use for each instead of an iterator) See if you can locate the documentation for random_shuffle and sort either in VS help or with Google. Once you leave this class, you will need to be able to find information like this on your own. Checklist 1. Did NOT create a folder for the solution 2. Project/solution named correctly 3. Correct comments at top 4. Consistent indentation 5. Good variable names 6. Overall neat organization 7. Comments in code explain what's being done 8. Correct division of code into .h and .cpp files 9. Use of #pragma once in .h files (or, #ifndef) 10. #include "stdafx.h" in cpp files (or, suppress pch)

      A Offline
      A Offline
      Akandel
      wrote on last edited by
      #2

      @Richard-MacCutchann

      L 1 Reply Last reply
      0
      • A Akandel

        Create an STL vector of 10 integers and store initial values (0 to 9 is fine). Use the std::random_shuffle algorithm to shuffle the list. Print the list. (try to do this one with an std iterator) Use the std::sort algorithm to sort the list. Print the list again. (you can use for each instead of an iterator) See if you can locate the documentation for random_shuffle and sort either in VS help or with Google. Once you leave this class, you will need to be able to find information like this on your own. Checklist 1. Did NOT create a folder for the solution 2. Project/solution named correctly 3. Correct comments at top 4. Consistent indentation 5. Good variable names 6. Overall neat organization 7. Comments in code explain what's being done 8. Correct division of code into .h and .cpp files 9. Use of #pragma once in .h files (or, #ifndef) 10. #include "stdafx.h" in cpp files (or, suppress pch)

        A Offline
        A Offline
        Akandel
        wrote on last edited by
        #3

        @Richardd MacCutchan

        1 Reply Last reply
        0
        • A Akandel

          @Richard-MacCutchann

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          What does this mean? If you expect me to do your work for you then you are going to be disappointed.

          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