So, I'm attempting to write an object oriented program that solves simple sudoku puzzles by checking the rows, columns, and the
3 x 3 grid.
#include <iostream>
using namespace std;
#include "doth.h"
int main()
{
User file:
Sudoku call;
int flag=0,ptx=0,pty=0;
call.Display();
for(;flag != 1;)
{
if (Puzzle[ptx][pty]==0)
{
void Fill_9();
void Row(int ptx);
void Column(int pty);
void Grid(int ptx,int pty);
}
if (ptx<9)
{
ptx++;
}
if (ptx==9)
{
ptx=0;
pty++;
}
if (pty==9)
{
ptx=0;
pty=0;
}
}
call.Display();
return(0);
}
My problem is that when I try to run the program, it tells me that Puzzle is an undeclared identifier, but I declared it publicly within my .h file. What's got me even more confused is when I right click and select "go to declaration" it takes me to the file. What am I doing wrong and how do I fix it?
P.S. Pointing out any other potential Id10t errors would be appreciated.