一个可编译无法运行的程序,请教????????????????
#include <iostream.h>int iShudoNum=0;
class Shudo{
private:
int iRow;
int iList;
int iId;
int iData[9][9];
public:
Shudo()
{
iShudoNum++;
iRow=9;
iList=9;
for(int i=0;i<9;i++)
for(int j=0;j<9;j++)
cin>>iData[i][j];
iId=iShudoNum;
cout<<"The number"<<iId<<"shudo has been created";
}
~Shudo()
{
cout<<"The "<<iId<<"has been reclaimed!"<<endl;
}
bool judge()
{
for(int i=0;i<9;i++)
for(int j=0;i<j;j++)
for(int k=j+1;k<9;k++)
if(iData[i][j]==iData[i][k]||iData[j][i]==iData[k][i])
return false;
return true;
}
void output()
{
for(int i=0;i<9;i++)
for(int j=0;j<9;j++)
{
cout<<iData[i][j];
if (j==8)
cout<<endl;
}
}
};
void main()
{
bool judgement;
Shudo myShudo;
judgement=myShudo.judge();
if (judgement==true)
myShudo.output();
else
cout<<"The shudo has not been created creactly!"<<endl;
}