Why can't I sort this container.

This is a discussion on Why can't I sort this container. within the C++ Programming forums, part of the General Programming Boards category; Hi, guys on stack overflow I've posted a question with this title and I got an advise that I should ...

  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    3

    Question Why can't I sort this container.

    Hi, guys on stack overflow I've posted a question with this title and I got an advise that I should rather ask this question here in order to get satisfactory answer. Could you please check it and tell me what I'm doing wrong and why I'm getting error when trying to compile this example? I corrected the code posted on SO as UncleBens suggested. I'm using VS2010 Ultimate.
    Thank you.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    23,775
    Since you say you corrected the code, you should post the updated code here, in [code][/code] bbcode tags, along with any relevant error messages.
    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
    Apr 2010
    Posts
    3
    That's ok. I found one typo in my code. It works perfectly now. Thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Straight Insertion Sort function problem
    By StaticKyle in forum C++ Programming
    Replies: 6
    Last Post: 05-12-2008, 04:03 AM
  2. Linked List Queue Implementation help
    By Kenogu Labz in forum C++ Programming
    Replies: 8
    Last Post: 09-21-2005, 10:14 AM
  3. threaded merge sort
    By AusTex in forum Linux Programming
    Replies: 4
    Last Post: 05-04-2005, 04:03 AM
  4. Sorting
    By vasanth in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 11-10-2003, 04:21 PM
  5. Shell Sort vs Heap Sort vs Quick Sort
    By mackol in forum C Programming
    Replies: 6
    Last Post: 11-22-2002, 07:05 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21