回答編集履歴
2
コードの変更
test
CHANGED
@@ -136,25 +136,19 @@
|
|
136
136
|
|
137
137
|
}
|
138
138
|
|
139
|
-
else {
|
139
|
+
else if (iskanji(c)) {
|
140
140
|
|
141
|
-
if (
|
141
|
+
if (startcnt + 1 < dsize) {
|
142
142
|
|
143
|
-
i
|
143
|
+
unsigned char d = staddr[startcnt + 1];
|
144
144
|
|
145
|
-
|
145
|
+
onhold = iskanji2(d);
|
146
146
|
|
147
|
-
|
147
|
+
if (onhold) {
|
148
148
|
|
149
|
-
|
149
|
+
putchar(c);
|
150
150
|
|
151
|
-
putchar(c);
|
152
|
-
|
153
|
-
|
151
|
+
if (bytecnt == ROW - 1) putchar(d);
|
154
|
-
|
155
|
-
}
|
156
|
-
|
157
|
-
else putchar('.');
|
158
152
|
|
159
153
|
}
|
160
154
|
|
@@ -162,11 +156,11 @@
|
|
162
156
|
|
163
157
|
}
|
164
158
|
|
165
|
-
else if (isprint(c) || iskana(c)) putchar(c);
|
166
|
-
|
167
159
|
else putchar('.');
|
168
160
|
|
169
161
|
}
|
162
|
+
|
163
|
+
else putchar(isprint(c) || iskana(c) ? c : '.');
|
170
164
|
|
171
165
|
}
|
172
166
|
|
1
コードの修正
test
CHANGED
@@ -154,7 +154,7 @@
|
|
154
154
|
|
155
155
|
}
|
156
156
|
|
157
|
-
else putchar(
|
157
|
+
else putchar('.');
|
158
158
|
|
159
159
|
}
|
160
160
|
|