質問編集履歴
2
コードの訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,6 +24,10 @@
|
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
+
[インクルードしたライブラリ](https://linuxjm.osdn.jp/html/LDP_man-pages/man3/toupper.3.html)
|
28
|
+
|
29
|
+
|
30
|
+
|
27
31
|
###発生している問題・エラーメッセージ
|
28
32
|
|
29
33
|
|
@@ -34,23 +38,19 @@
|
|
34
38
|
|
35
39
|
ex2_4.c: In function 〓〓〓main〓〓〓:
|
36
40
|
|
37
|
-
ex2_4.c:
|
41
|
+
ex2_4.c:7:9: warning: format 〓〓〓%c〓〓〓 expects argument of type 〓〓〓char *〓〓〓, but argument 2 has type 〓〓〓int〓〓〓 [-Wformat=]
|
38
42
|
|
39
43
|
scanf("%c", a);
|
40
44
|
|
41
45
|
^
|
42
46
|
|
43
|
-
ex2_4.c:6:12: warning: implicit declaration of function 〓〓〓toupper〓〓〓 [-Wimplicit-function-declaration]
|
44
|
-
|
45
|
-
char b = toupper(a);
|
46
|
-
|
47
|
-
^
|
48
|
-
|
49
|
-
ex2_4.c:
|
47
|
+
ex2_4.c:7:3: warning: 〓〓〓a〓〓〓 is used uninitialized in this function [-Wuninitialized]
|
50
48
|
|
51
49
|
scanf("%c", a);
|
52
50
|
|
53
51
|
^
|
52
|
+
|
53
|
+
|
54
54
|
|
55
55
|
|
56
56
|
|
@@ -63,6 +63,10 @@
|
|
63
63
|
```c
|
64
64
|
|
65
65
|
#include<stdio.h>
|
66
|
+
|
67
|
+
#include <ctype.h>
|
68
|
+
|
69
|
+
|
66
70
|
|
67
71
|
int main(){
|
68
72
|
|
1
情報追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,6 +15,12 @@
|
|
15
15
|
capital is = A //返される文字
|
16
16
|
|
17
17
|
```
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
toupper関数は以下のwebサイトを参考にしました。
|
22
|
+
|
23
|
+
[参考サイト](http://www.c-lang.net/%E5%A4%A7%E6%96%87%E5%AD%97%E3%83%BB%E5%B0%8F%E6%96%87%E5%AD%97%E3%81%AB%E5%A4%89%E6%8F%9B%E3%81%99%E3%82%8B-2/index.html)
|
18
24
|
|
19
25
|
|
20
26
|
|