Question about Computers & Internet

1 Answer

What is program code of sudoku in turbo c

The codes of sudoku in turbo c programming language. the basic codes. not in too complicated.

Posted by on

  • 6 more comments 
  • renmx12 Apr 21, 2009

    nope. i want the program of sudoku in turbo c.
    example:

    #include
    and so on.......

  • renmx12 Apr 21, 2009

    the codes of sudoku game in C. not in C++.

  • renmx12 Apr 22, 2009

    the codes which is given by the Sandy Gupta is so complicated. i cant understand it. i need only simple program code because i'm only a beginner.

  • renmx12 Apr 22, 2009

    for now im just understanding it. But in my program i start a little bit. If I run it I create tables and the given numbers only. My problem is I dont know how to continue the program.
    And sorry for the rating that I gave.
    Thanks for your helping.

  • renmx12 Apr 22, 2009

    sorry again. i'm just depress now to my project because it submit immediately. sorry.

    can you help me to continue my program what i started?

  • renmx12 Apr 22, 2009

    this is my program.

    #include
    #include


    main()
    {
    int x, y,a,sd[9][9];
    char word[5];
    clrscr();
    for(x=5,a=x;x<=43;x+=4)
    for(y=2;y<=19;y++)
    {
    gotoxy(x,y);
    printf("|");
    }
    for(y=1;y<=19;y+=2)
    for(x=5,a=x;x<42;x++)
    {
    if(a==x)
    {
    a+=4;
    continue;
    }
    gotoxy(x,y);
    printf("_");
    }

    gotoxy(11,2);
    printf("%d",sd[0][1]=9);
    gotoxy(39,2);
    printf("%d",sd[0][8]=8);
    gotoxy(15,4);
    printf("%d",sd[1][2]=3);
    gotoxy(19,4);
    printf("%d",sd[1][3]=2);
    gotoxy(27,4);
    printf("%d",sd[1][5]=7);
    gotoxy(35,4);
    printf("%d",sd[1][7]=9);
    gotoxy(11,6);
    printf("%d",sd[2][1]=6);
    gotoxy(31,6);
    printf("%d",sd[2][6]=7);
    gotoxy(27,8);
    printf("%d",sd[3][5]=1);
    gotoxy(39,8);
    printf("%d",sd[3][8]=6);
    gotoxy(15,10);
    printf("%d",sd[4][2]=5);
    gotoxy(19,10);
    printf("%d",sd[4][3]=4);
    gotoxy(23,10);
    printf("%d",sd[4][4]=3);
    gotoxy(27,10);
    printf("%d",sd[4][5]=2);
    gotoxy(31,10);
    printf("%d",sd[4][6]=1);
    gotoxy(7,12);
    printf("%d",sd[5][0]=4);
    gotoxy(11,12);
    printf("%d",sd[5][1]=1);
    gotoxy(19,12);
    printf("%d",sd[5][3]=7);
    gotoxy(15,14);
    printf("%d",sd[6][2]=7);
    gotoxy(35,14);
    printf("%d",sd[6][7]=3);
    gotoxy(11,16);
    printf("%d",sd[7][1]=2);
    gotoxy(19,16);
    printf("%d",sd[7][3]=9);
    gotoxy(27,16);
    printf("%d",sd[7][5]=8);
    gotoxy(31,16);
    printf("%d",sd[7][6]=6);
    gotoxy(7,18);
    printf("%d",sd[8][0]=1);
    gotoxy(19,18);
    printf("%d",sd[8][3]=5);
    gotoxy(35,18);
    printf("%d",sd[8][7]=4);


  • Erinc INCI
    Erinc INCI May 11, 2010

    But, still "Sudoku Game" and "Sudoku Solver"'s algortihms are completely different.

  • Erinc INCI
    Erinc INCI May 11, 2010

    What do you mean by "Codes of Sudoku"? Do you want to do a sudoku solving program or so?

×

Ad

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    MVP:

    An expert that gotĀ 5 achievements.

    Sergeant:

    An expert that hasĀ over 500 points.

    Champion:

    An expert who has answered 200 questions.

  • Expert
  • 219 Answers

Hi, You can download the source code of Sudoku in C from below link:- http://www.techfinesse.com/game/sudoku_solver.php

Thanks! Sandy

Posted on Apr 22, 2009

  • Sandeep Gupta Apr 22, 2009

    But my dear u have to understand the fact that it is not an easy game to code.Sudoku is quite difficult.I am also a software engineer so i know how tough it is to develop Sudoku.
    So read the code thoroghly to understand it.
    You should be able to understand it if u take some interst in that. And please do not rate the code by just seeing it.First understand it.
    It is not that complicated as u have mentioned.


    Thanks!
    Sandy

  • Sandeep Gupta Apr 22, 2009

    hi

    thanks for ur comment.i think u got my point.please rate me appropriately dear.



    thanks!

    sandy

×

Ad

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of.(from cars to computers, handyman, and even drones)
click here to download the app (for users in the US for now) and get all the help you need.
Goodluck!

Posted on Jan 02, 2017

Ad

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

Need to reinstall or repair sudoku


You can check the properties of the shortcut then check the folder path to locate the application.... then you can uninstall it:)

Dec 01, 2011 | Avanquest SUDOKU PUZZLE ADDICT: UNLIMITED...

1 Answer

What is the advantage of visual basic 6.0?


The advantages of Visual Basic: 1) It's simple language. Things that may be difficult to program with other language can be done in Visual Basic very easily. 2) Because Visual Basic is so popular, There are many good resources (Books, Web sites, News groups and more) that can help you learn the language. You can find the answers to your programming problems much more easily than other programming languages. 3) You can find many tools (Sharewares and Freewares) on the internet that will Spare you some programming time. For example, if you want to ping a user over the internet in your program, Instead of writing the ping function yourself, you can download a control that does it, and use it in your program. Compare to other languages, Visual Basic have the widest variety of tools that you can download on the internet and use in your programs.

Feb 17, 2011 | Microsoft Visual Basic 6.0 for PC

1 Answer

How to create a program using visual basic 6.0 kindly give me a sample program using VB 6.0, with the codes.


The "Hello World" program is always the first program you should write in any language, as it will show you very basic use of the language.
Here is a tutorial of a "hello world" program for VB6.
Hope this helps, good luck!

Aug 13, 2010 | Microsoft Visual Basic 6.0 (361-00686) for...

2 Answers

HOW TO RUN TURBO C IN 64 BIT WINDOWS 7


Hi,

Turbo C/C++

64 Bit operating systems like Windows Xp64, Windows Vista64, and Window 7 will no longer run 16 bit applications and this includes Turbo C 2.01/Turbo C++ 3.0/3.1 or the programs they produce.
Turbo C 2.0 was first released in 1989, Turbo C++ 3.1 in 1991 making these programs nearly two decades old. They are just too old to run on modern PCs.

Upgrade To Modern Compiler

Note that Turbo C/C++ is very very very very old and produces 16 bit programs which no long run on many modern computers. So the best advice is to upgrade to a new compiler. There are many free compilers out there that you can use.

Free Compilers:
  • Microsoft Express 2008 -- Great compiler and comes with a nice IDE (Visual Studio)
  • MinGW -- Command line compiler but there are many IDEs that use it such as Code::Blocks, Eclipse, Dev-C++
  • Borland C++ 5.5 -- Will compile Turbo C++ programs (including graphics.h) but produces 32bit code (slightly better than Turbo C) Only includes command line tools.
  • DigitalMars -- Its still old but at least it produces 32bit programs (better than Turbo C). You might stumble across D++ which is a very powerful language derivative of C++.
  • OpenWacom -- Again, nearly as old as Turbo C, but it produces more modern 32bit applications! (this project is still active too).
If you are just working with C there is:
  • Pelles -- and excellent modern C compiler and IDE. Pelles also has the new TR1 libraries available so you can use regex and other new features. As well as support for many older libraries.
  • LCC-Win32 -- Used as the basis for many of the research compilers.
  • Tiny C -- is said to produce very fast programs.
.
All of the above are Free and all excellent replacements for Turbo C which is so old it will not even run on your computer.


Regards.

May 24, 2010 | Microsoft Windows Vista Ultimate Edition

2 Answers

VIDEO LIBRARY MANAGEMENT SYSTEM source code IN visual basic


You can get your project from

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=70428&lngWId=1

Nov 09, 2009 | Microsoft Visual Basic 6.0 for PC

1 Answer

How can i develope a new application environment?


For a beginning programmer, you should start with a programming language such as Visual Basic which lets you place controls onto a workspace and then program for each control. Most programs can be programmed in many languages, and the more powerful the programming language, the more complicated and longer it will take to learn. Microsoft programs are actually programmed in their own proprietary language, however the most popular these days would be the C programming language. There are a few variations of this including C++ and C# (pronounced "See Prime"). There are many resources for beginning programmers if you wish to learn on your own, or you can attend your local community college to learn programming a classroom setting.

Mar 10, 2009 | Microsoft Windows XP Professional

1 Answer

An example of visual basic program


Visual Basic (VB) is the thrid generation event-driven programming language and integrated development enviorment (IDE) from Microsoft for its COMprogramming model. VB is also considered a relatively easy to learn anduse programming language, because of its graphical development featuresand BASIC heritage.
Here is an example of a code that displays a message box "Hello, World!"
as the program runs:

Private
Sub Form_Load()
MsgBox "Hello, World!"
End Sub

simply making duplicated lines of text and changing the words in the
speech marks can draw a different text and ammounts.
For example:

Private
Sub Form_Load()
MsgBox "Welcome, blue_skies61!"
MsgBox "My name is Siwek06!"
End Sub

you can also bold the text by puting this line before a text:

Sub SetFontBold()

Overall i think this is a easy language to learn.
Go on to microsoft.com help center, or the forums to learn more.


Feb 23, 2009 | Visual Land V-Touch Digital Media Player

4 Answers

What is the difference between Java editor and Java software?


java editor is a text editor which probably understands java language synthax and can automatically call java to compile your code.
Java software is a program written in Java programming language which is interpreted/executed by JVM(JAva virtual machine) on a target computer.
Your question is a rough equivalent to : What is a difference between typewriter and a recipe book written in English language

Jan 21, 2009 | Microsoft Windows Vista Ultimate Edition

2 Answers

What is a compiler and ite story


A compiler takes code that you have writin, and 'compiles' it into machine language code ex.10010011, a language that your computer can understand and execute.

Jan 15, 2009 | Computers & Internet

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

1,394 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Doctor PC
Doctor PC

Level 3 Expert

7733 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...