This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void create_puzzle(char board[][9]) | |
{ | |
char buffer[50] = { 0 }; | |
int i=0, k=0; | |
clrscr(); | |
gotoxy(0,21); | |
clear_puzzle(board); | |
printf("\nManually create a sudoku puzzle!\n "); | |
while (i < 9) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void save_puzzle(unsigned char board[][9]) | |
{ | |
int i, j, k; | |
char path[50]; | |
clrscr(); | |
printf("Insert the name of the file you want to save your sudoku puzzle \n"); | |
scanf("%s", path); | |
k = strlen(path); | |
FILE *file = fopen(path, "w+"); | |
if(!file) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
int foo( char c[] ) | |
{ | |
int i , size , d = 0 , j = 1, a; | |
size = strlen(c); | |
for (i = size-1 ; i >= 0; i--) | |
{ |