回答編集履歴
2
誤記訂正
test
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
}else if(~~~~){
|
30
30
|
|
31
|
-
string[i]
|
31
|
+
string[i]=~~~~;
|
32
32
|
|
33
33
|
}
|
34
34
|
|
1
追記
test
CHANGED
@@ -14,6 +14,28 @@
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
+
```C
|
18
|
+
|
19
|
+
for(i=0;i<=j;i++){
|
20
|
+
|
21
|
+
if(string[i]>='A'&&string[i]<='Z'){
|
22
|
+
|
23
|
+
string[i]+='a'-'A';
|
24
|
+
|
25
|
+
}else if(string[i]>='a'&&string[i]<='z'){
|
26
|
+
|
27
|
+
string[i]-='a'-'A';
|
28
|
+
|
29
|
+
}else if(~~~~){
|
30
|
+
|
31
|
+
string[i]-=~~~~;
|
32
|
+
|
33
|
+
}
|
34
|
+
|
35
|
+
}
|
36
|
+
|
37
|
+
```
|
38
|
+
|
17
39
|
|
18
40
|
|
19
41
|
あと、`getchar()`の返すのは`int`なので、`char c;`じゃなくて`int c;`ですね。
|