Click here to Skip to main content
15,884,177 members
Articles / Programming Languages / C++/CLI

Sudoku Solver

Rate me:
Please Sign up or sign in to vote.
2.40/5 (5 votes)
7 Feb 2007CPOL3 min read 77K   1.9K   18  
Sudoku solver using a backtracking algorithm
#include"stdio.h"
template<class T>
class LIST
{
	class node
	{
	public:
		T a;//element at this node
		node *l;//link to next node
		node* getnode(T b)
		{
			node *t;
			t=new node;
			t->l=NULL;
			t->a=b;
			return t;
		}
		void deal();
	};
public:
	LIST();
	~LIST();
	int isempty();
	T frontel();
	void frontins(T b);
	T prel();
	void repr();
	int frontdel();
	int pos(T el);
private:
	node *f;
	node *pr;
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead Yahoo!
India India
I've studied info. sc. engg. from Sir MVIT, Bangalore.

I'm interested in programming.

Some of my technical blogs:

http://perl-blog.kbsbng.com/
http://java-blog.kbsbng.com/

I also enjoy writing some webpages such as http://sites.google.com/site/plantencyclopedia/

More about me at http://www.kbsbng.com and http://blog.kbsbng.com.

Comments and Discussions