Esto es?
Código C++:
Ver original#include <cstdlib>
#include <iostream>
#include <ctime>
#include <stdio.h>
using namespace std;
bool serepita(int num,int numero[][9]){
int b,c;
for (b=0;b<9;b++){
for(c=0;c<9;c++){
if (num==numero[b][c]){
return true;
}
else{
return false;
}
}
}
}
int main(int argc, char *argv[])
{
int s[9][9]={1,1,0,0,1,0,0,1,0, 1,1,0,0,0,0,0,0,1, 0,1,1,1,0,1,1,0,0, 0,0,0,1,1,0,1,0,1 ,0,1,0,0,1,0,0,1,0, 1,0,1,0,1,1,0,0,0, 0,0,1,1,0,1,1,1,0, 1,0,0,0,0,0,0,1,1, 0,1,0,0,1,0,0,1,1};
int az;
int x,y,
numero[9][9],
elnumero;
int i,j;
for (i=0; i<9; i++){
for(j=0; j<9; j++){
if(s[i][j]==1){
s[i][j]=az;
}
}
}
for (i=0;i<9;i++){
for(j=0;j<9;j++){
elnumero=numero[i][j];
while (serepita(elnumero,numero)){
}
}
}
for (i=0; i<9; i++){
for(j=0; j<9; j++){
if(s[i][j]==0)
else
}
cout<<"\n\n";
}
return EXIT_SUCCESS;
}