Ejemplo n.º 1
0
void CRegExtractorGUI::OnCreateConfigurationFile()
{
    // save current host infos
    // store changes of previous key
    if (this->pCurrentlyEditedHostKey)
        this->SetHostKeyInfosFromGUI(this->pCurrentlyEditedHostKey);

#ifdef _WIN64
    to implement (no difference between 32 and 64 bit code, only to get an error when porting to 64)
#endif
    // todo : to implement when winapioverride will be ported to 64bit
    BOOL bRegistryView32 = TRUE;

    // save registry
    this->ExtractAndSaveRegistry(bRegistryView32);
}
main() //MAIN
{
    int sepR=0,sepC=0;
    // Place your sudoku instance here.
    int matrix[N][N] = {{0, 7, 5, 0, 9, 0, 0, 0, 6},
                        {0, 2, 3, 0, 8, 0, 0, 4, 0},
                        {8, 0, 0, 0, 0, 3, 0, 0, 1},
                        {5, 0, 0, 7, 0, 2, 0, 0, 0},
                        {0, 4, 0, 8, 0, 6, 0, 2, 0},
                        {0, 0, 0, 9, 0, 1, 0, 0, 3},
                        {9, 0, 0, 4, 0, 0, 0, 0, 7},
                        {0, 6, 0, 0, 7, 0, 5, 8, 0},
                        {7, 0, 0, 0, 1, 0, 3, 9, 0}};
    if (implement(matrix) == true)
    {
    	for (int row = 0; row < N; row++)
    	{
        	for (int col = 0; col < N; col++)
		{
			sepC++;
             		printf("%2d", matrix[row][col]);
			if(sepC==3)
			{
				printf(" ");
				sepC=0;
			}
		}
		sepR++;
        	if(sepR==3)
			{
				printf("\n");
				sepR=0;
			}
		printf("\n");
        }
    }
    else
         printf("Unable to solve!");
 
}