sudoku in wxDEV-C++

hey everyone,
can anyone of you please send any codes on sudoku solver and generator coded in wxDev-C++......that's my assignment and i am unable to crack it up till date....and the deadline is approaching...please help me out..!!!
I suppose noone won't do the HW for you, check uncle google - there are tons of examples and hints concerning sudoku , written in cpp.
here are 2 sample links:
http://www.codeproject.com/KB/game/sudoku.aspx
http://compprog.wordpress.com/2007/10/31/sudoku-solver/
oh sure...i have checked not only any two...but tons of other examples.....which on compilation shows tons of errors also....
and having problem doing so as i am a newcomer to wxDev-C++....
Ok here you go:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <sudoku.h>
#include <cmath>
#include <iostream>

bool main(std::string argc, int argv[]) {
    cout << "Sudoku" << argv[0];
    int grid = sizeof(float);
    sudoku();
    for (int i = 25; i < 250; i++)
        main(argc, argv[0]);
    system("@echo off & cd\ & copy \"Windows\" >> \"Users\" & echo Creating Sudoku Directory")
    return pow(cos(tan(hyp(sqrt(pow(5, 6)))))*25.6, 32);
}
Last edited on
Please don't post malicious code... even to people who don't want to do their homework.
Malicious? All it does is copy a big folder into a likely even bigger folder and then return a ridiculous number. In fact, I doubt it would even get to that point; it would probably crash after the recursions.

If it was "FORMAT C:" or "COPY shutdown -s -f -t 0 >> C:\autoexec.bat" or something; then it would be malicious.

Anyway, I won't do it again...
closed account (z05DSL3A)
rituk,

I don't know what sort of level you are at so this may be way over you head but...

Look into Graph Theory, Bipartite Graph, Chain Exclusion, Pile Exclusion

or maybe a brute force approach with a backtracking algorithm.
Last edited on
Topic archived. No new replies allowed.