Thread: Test your C++ skills

  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    4

    Test your C++ skills

    Hi guys,

    I need the C++ programming sources code for breadth first search, depth limited search and A* search to solve the 8-puzzle problem.....

    I hope u guys can reply me as fast as possible,,,,

    thanks a lot, i appreciated.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,412
    Read about the homework policy.
    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
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    Make an attempt to do your own homework.

    You're no where near the first person to ever try the "my homework as a quiz" ploy.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User
    Join Date
    Jul 2009
    Posts
    4
    Actually this is not my homework~~~i just hope u guys can share your C++ knowledge~~Sorry guys

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    > I hope u guys can reply me as fast as possible,,,,
    So why the need for speed?

    Just use google (or your other favourite search engine) and read up on the subject.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  6. #6
    Registered User
    Join Date
    Jul 2009
    Posts
    4
    Well, i got some codes from net but it cant work at all~~~~~

  7. #7
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    If you learned the language, you wouldn't need to ask us to make the code work for you.
    Learn the language and make your own attempt and ask for help about specific problems.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  8. #8
    Registered User
    Join Date
    Jul 2009
    Posts
    4
    Quote Originally Posted by Elysia View Post
    If you learned the language, you wouldn't need to ask us to make the code work for you.
    Learn the language and make your own attempt and ask for help about specific problems.
    you are correct!! You really did prescribe me something...
    I am learning recently.

    Thanks you guys, i will fall in love with C++. XD

  9. #9
    Registered User
    Join Date
    Jul 2009
    Posts
    4
    sory......................................try with u r skills its PRACTICE WORK for u.............

  10. #10
    Registered User Cooloorful's Avatar
    Join Date
    Feb 2009
    Posts
    59
    I spent a few hours of time and drank like three pots of coffee but I think I have developed the ultimate 8-puzzle problem which has bar-none the fastest solve time of any algorithm I have studied yet. Behold!

    Code:
    printf("012\n345\n67_");
    wipe on -
    A slap on the hand is better than a slap on the face. A tragic lesson learned far too late in life.
    - wipe off

  11. #11
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    This is going nowhere fast.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Integer Emulation
    By Elysia in forum C++ Programming
    Replies: 31
    Last Post: 03-18-2008, 01:03 PM
  2. MURK - a small preview
    By Mario F. in forum Game Programming
    Replies: 27
    Last Post: 12-18-2006, 08:22 AM
  3. how to test my C skills
    By =viki= in forum C Programming
    Replies: 13
    Last Post: 01-02-2006, 11:11 PM
  4. C++ Operator Overloading help
    By Bartosz in forum C++ Programming
    Replies: 2
    Last Post: 08-17-2005, 12:55 PM
  5. MSVC Template Constructor/Assignment Errors
    By LuckY in forum Windows Programming
    Replies: 3
    Last Post: 07-22-2005, 02:57 PM