teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

13

2018/08/18 12:03

投稿

tokuo0
tokuo0

スコア12

title CHANGED
File without changes
body CHANGED
@@ -75,10 +75,9 @@
75
75
  return _multipleOf;
76
76
  }
77
77
 
78
- int(*not())()
78
+ int (*not(int(*f)()))()
79
79
  {
80
- int(*f)()=0;
80
+ // 変換せずに返すので「 even()」のまま
81
-
82
81
  return f;
83
82
  }
84
83
 

12

2018/08/18 12:03

投稿

tokuo0
tokuo0

スコア12

title CHANGED
File without changes
body CHANGED
File without changes

11

2018/08/18 12:02

投稿

tokuo0
tokuo0

スコア12

title CHANGED
File without changes
body CHANGED
File without changes

10

2018/08/18 10:30

投稿

tokuo0
tokuo0

スコア12

title CHANGED
File without changes
body CHANGED
File without changes

9

2018/08/18 10:29

投稿

tokuo0
tokuo0

スコア12

title CHANGED
File without changes
body CHANGED
@@ -14,7 +14,7 @@
14
14
  // JavaScriptの例
15
15
 
16
16
  importPackage(java.lang)
17
- print= function(x){
17
+ print=function(x){
18
18
  System.out.print(x+' ')}
19
19
 
20
20
  not=function(predicate)

8

2018/08/18 10:28

投稿

tokuo0
tokuo0

スコア12

title CHANGED
File without changes
body CHANGED
File without changes

7

2018/08/18 10:27

投稿

tokuo0
tokuo0

スコア12

title CHANGED
File without changes
body CHANGED
@@ -75,7 +75,7 @@
75
75
  return _multipleOf;
76
76
  }
77
77
 
78
- int (*not())()
78
+ int(*not())()
79
79
  {
80
80
  int(*f)()=0;
81
81
 

6

2018/08/18 10:23

投稿

tokuo0
tokuo0

スコア12

title CHANGED
File without changes
body CHANGED
File without changes

5

2018/08/18 10:01

投稿

tokuo0
tokuo0

スコア12

title CHANGED
File without changes
body CHANGED
@@ -10,12 +10,12 @@
10
10
  Cで書けるのでしょうか?
11
11
  御教授下さい。
12
12
 
13
-
14
13
  ```lang- JavaScript
15
- // 元のJavaScriptのコード
14
+ // JavaScriptの
16
15
 
17
16
  importPackage(java.lang)
17
+ print= function(x){
18
- print= function(x){System.out.print(x+' ')}
18
+ System.out.print(x+' ')}
19
19
 
20
20
  not=function(predicate)
21
21
  {
@@ -43,9 +43,9 @@
43
43
  even=multipleOf(2)
44
44
  odd=not(even)
45
45
 
46
- print(odd(2
46
+ print(odd(2))
47
-
47
+ print(odd(3))
48
-
48
+ ```
49
49
  ```lang-C
50
50
  // C言語による書き換えを試みた途中結果
51
51
 

4

2018/08/18 10:00

投稿

tokuo0
tokuo0

スコア12

title CHANGED
File without changes
body CHANGED
@@ -10,6 +10,7 @@
10
10
  Cで書けるのでしょうか?
11
11
  御教授下さい。
12
12
 
13
+
13
14
  ```lang- JavaScript
14
15
  // 元のJavaScriptのコード
15
16
 
@@ -42,9 +43,9 @@
42
43
  even=multipleOf(2)
43
44
  odd=not(even)
44
45
 
45
- print(odd(2))
46
+ print(odd(2
46
- print(odd(3))
47
+
47
- ```
48
+
48
49
  ```lang-C
49
50
  // C言語による書き換えを試みた途中結果
50
51
 

3

2018/08/18 09:51

投稿

tokuo0
tokuo0

スコア12

title CHANGED
File without changes
body CHANGED
@@ -10,7 +10,6 @@
10
10
  Cで書けるのでしょうか?
11
11
  御教授下さい。
12
12
 
13
-
14
13
  ```lang- JavaScript
15
14
  // 元のJavaScriptのコード
16
15
 

2

2018/08/18 09:48

投稿

tokuo0
tokuo0

スコア12

title CHANGED
File without changes
body CHANGED
@@ -45,11 +45,7 @@
45
45
 
46
46
  print(odd(2))
47
47
  print(odd(3))
48
-
49
- // ---------- JavaScriptの例、終わり ----------
50
48
  ```
51
-
52
-
53
49
  ```lang-C
54
50
  // C言語による書き換えを試みた途中結果
55
51
 

1

2018/08/18 09:47

投稿

tokuo0
tokuo0

スコア12

title CHANGED
File without changes
body CHANGED
@@ -10,6 +10,8 @@
10
10
  Cで書けるのでしょうか?
11
11
  御教授下さい。
12
12
 
13
+
14
+ ```lang- JavaScript
13
15
  // 元のJavaScriptのコード
14
16
 
15
17
  importPackage(java.lang)
@@ -45,7 +47,10 @@
45
47
  print(odd(3))
46
48
 
47
49
  // ---------- JavaScriptの例、終わり ----------
50
+ ```
48
51
 
52
+
53
+ ```lang-C
49
54
  // C言語による書き換えを試みた途中結果
50
55
 
51
56
  #include<stdio.h>
@@ -90,4 +95,5 @@
90
95
 
91
96
  print(odd(2));
92
97
  print(odd(3));
93
- }
98
+ }
99
+ ```