回答編集履歴
1
追記
answer
CHANGED
@@ -27,4 +27,21 @@
|
|
27
27
|
abc / abc 0
|
28
28
|
abc / def -1
|
29
29
|
def / abc 1
|
30
|
-
```
|
30
|
+
```
|
31
|
+
|
32
|
+
[追記] strstr の件:
|
33
|
+
```
|
34
|
+
#include <stdio.h>
|
35
|
+
#include <string.h>
|
36
|
+
|
37
|
+
|
38
|
+
int main() {
|
39
|
+
const char* str = "私は映画が大好きです";
|
40
|
+
if ( strstr(str,"映画") && strstr(str,"好きです") ) {
|
41
|
+
printf("僕も映画は好きですよ!\n");
|
42
|
+
}
|
43
|
+
|
44
|
+
return 0;
|
45
|
+
}
|
46
|
+
```
|
47
|
+
問題ありませんねぇ...
|