回答編集履歴
2
answer
CHANGED
|
@@ -23,8 +23,9 @@
|
|
|
23
23
|
nbytes = wcstombs(mbcs, wcs, sizeof(mbcs));
|
|
24
24
|
mbcs[nbytes] = '\0';
|
|
25
25
|
index = y * BOARD_SIZE + x;
|
|
26
|
+
if (wcsncmp(wcs, L" ", 1))
|
|
26
|
-
|
|
27
|
+
strcpy(dataretu[index].koma, mbcs);
|
|
27
|
-
|
|
28
|
+
else
|
|
28
29
|
dataretu[index].koma[0] = '\0';
|
|
29
30
|
}
|
|
30
31
|
}
|
1
answer
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
touchwin(curscr);
|
|
13
13
|
wrefresh(curscr);
|
|
14
14
|
|
|
15
|
-
extern person dataretu[
|
|
15
|
+
extern person dataretu[];
|
|
16
16
|
int disp_size = CELL_W - 2;
|
|
17
17
|
int nbytes, index;
|
|
18
18
|
wchar_t wcs[disp_size + 1];
|