from file -> array -> sorting ? help with logic...

Hello all.

Firstly I would like to tell my story.
My task is make .txt file with 10x10 fillet with "0" and "X"
prew of .txt file.

00X0X00000
X0000X0000
000X000000
00000X00X0
0X0000X000
0X00X00000
X0X00000X0
00X0000000
00000X0X00
X000000000


Now next thing is to read from file and store all that in to array (I still doubt char matrix[][] is better that string matrix[][] Im lacking logic here but i will figure out tonight i hope so lol)

!!!!!!! now The task is to check if X make row's or columns or diagonals in .txt pattern how can I do that I need just an idea guys..
don't say i have to do Tic-Tac-To compate on 100 fields is there any faster way ?

Thanks in advice Merrry Chtistmas to all
Last edited on
Topic archived. No new replies allowed.