![]() |
|
#1
|
|||
|
|||
sudoku helpim trying to create a program that will open a file and read it, then check to see if it is a solution for a sudoku puzzle. so far i have....
CPP / C++ / C Code:
my problem is that it doesnt diplay what it should. its like it isnt opening the file or reading it. am i missing something? also...im not sure how to have it check for a solution in a 3x3 square...any suggestionS? Last edited by LuciWiz : 18-Nov-2005 at 03:51.
Reason: Please insert your C++ code between [c++] & [/c++] tags
|
|||
|
#2
|
||||
|
||||
Re: sudoku helpKris,
You have been asked to use code tags twice, and to read the Guidelines. Is there something in the Guidelines you didn't understand? Quote:
Quote:
Quote:
Quote:
__________________
Please read http://www.gidforums.com/t-5566.html. They were written to help you create a request that is readable and has enough information we can actually tell what you need help with. |
|
#3
|
|||
|
|||
Re: sudoku helpQuote:
1. You aren't reading anything from the file. Forget the calculations for now. Open and read the file into an array. Then print out the values that are in the array so that you can be sure that data are what you think the program needs to be. If there is something about this that you don't understand, show us exactly what is in your input file and show us what your program prints out. After you are sure that you can read the file perfectly, then try the calculations. 2. Work out an example with pencil and paper. Show us the example (tell us what the data in "good.txt" is). Show us how you performed some of the calculations manually. The, put debug statements (cout<<) at places in your program where calculations are performed. Show the results of calculations at each step of the program (make the program print out the calculations as it performs them). Regards, Dave |
Recent GIDBlog
Problems with the Navy (Enlisted) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sudoku | kris5683 | C++ Forum | 1 | 08-Nov-2005 08:48 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The