Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: devilsummer

Search: Search took 0.01 seconds.

  1. Re: Convert SUDOKU solver from Depth-First to Breadth-First

    When I convert from stack to queue (.top to .front) the program does not work correctly. It always displays the message that there is no solution to the pattern inputed by the user.
  2. Convert SUDOKU solver from Depth-First to Breadth-First

    /* Sudoku solver using dept-first search*/

    #include <iostream>
    #include <stack>
    using namespace std;

    struct valpos //structure which carries information about the position of the...
  3. Re: Shell sort won't work in this program (the algorithm itself works just fine)

    Thank you Paul. I will switch to string and see what happens. I appreciate your help
  4. Re: Shell sort won't work in this program (the algorithm itself works just fine)

    What you say is perfectly logical. I implemented the algorithm in a simple program and it works just fine. When I implement it in the code above with the same values as in the simple program it...
  5. Re: Shell sort won't work in this program (the algorithm itself works just fine)

    Yes i am.
  6. Re: Shell sort won't work in this program (the algorithm itself works just fine)

    I have checked it over and over again. The moment it checks the "if" statement, it goes immediately to the "break" statement (despite the condition). That is why I posted this problem here, because I...
  7. Re: Shell sort won't work in this program (the algorithm itself works just fine)

    You can try and implement the code yourself. It always evaluates to false. I even tried another form of shell sort algorithm and with this new form it evaluates to true.
    Here is the second algorithm...
  8. Re: Shell sort won't work in this program (the algorithm itself works just fine)

    I have been doing that, but I dont see any problems
  9. Re: Shell sort won't work in this program (the algorithm itself works just fine)

    Thank you for your reply Paul.
    I am sorry for posting my question int the wrong question. I have tried to debug my program and the problem is that the "if" statement in the sort algorithm is always...
  10. Re: Shell sort won't work in this program (the algorithm itself works just fine)

    Paul thank you for your reply. I am sorry for posting my question on a Visual c++ forum. I corrected what you recommend and yes I did use the Visual c++ debugger. The problem is that the if statement...
  11. Shell sort won't work in this program (the algorithm itself works just fine)

    #include <iostream>
    using namespace std;

    class CD
    {
    public:
    static const int num = 100;
    char publisher[num], title[num], location[num];
    int year;
    public:
Results 1 to 11 of 11


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center