Posts

Showing posts from September, 2012

Sudoku Solver using C/C++

Image
Hey guys, today I am posting the code of one of my favorite project which I did when I was in first year of engineering. Hope you guys like it. Here's the code, enjoy coding. /* Project: Sudoku Solver using C/C++ Programmer: Ashok Kumar Shrestha */ #include<graphics.h> #include<conio.h> #include<dos.h> #include<process.h> #include<iostream.h> #include<stdio.h> int mat1[9][9];  //for printing given problem //////////////////graphics initialization/////////////////////////// union REGS i, o; struct SREGS s; int initmouse() {    i.x.ax = 0;    int86(0X33,&i,&o);    return ( o.x.ax ); } void showmouseptr() {    i.x.ax = 1;    int86(0X33,&i,&o); } void getmousepos(int *button, int *x, int *y) {    i.x.ax = 3;    int86(0X33,&i,&o);    *button = o.x.bx;    *x = o.x.cx;    *y = o.x.dx; } void hidemouseptr() { i.x.ax=2; int86(0x33