[RESOLVED] sort() not a member of std
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: [RESOLVED] sort() not a member of std

  1. #1
    Join Date
    Apr 2009
    Posts
    20

    [RESOLVED] sort() not a member of std

    why is visual studio telling me sort() is not a member of std?

    ive got using namespace std; but for some reason sort() isnt in there.

  2. #2
    Join Date
    Jan 2006
    Location
    Singapore
    Posts
    6,315

    Re: sort() not a member of std

    Perhaps you forgot to #include <algorithm>?
    C + C++ Compiler: MinGW port of GCC
    Build + Version Control System: SCons + Bazaar

    Look up a C/C++ Reference and learn How To Ask Questions The Smart Way
    Kindly rate my posts if you found them useful

  3. #3
    Join Date
    Apr 2009
    Posts
    20

    Re: sort() not a member of std

    yes i did .. thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center