공부(Study)

Sudoku Game with C++ - day1

Jae Ryun, Buster, Chung 2016. 7. 6. 14:09


This is first structure. With Random.h, created array of integers size 9 and printed it.

Result is below. array 'num' will be used judge if arr[3][3] is well created(if there is no repeated number)




Now, I added judgement if that 'arr' array is created well so there is no repeated number. So, I added array named 'arrNum' size 9, which will save created numbers.


   int arrNum[9];



and substituted created numbers in it



and rearranged arrNum by ascending order, using bubblesort algorithm