回答編集履歴
1
修正
test
CHANGED
@@ -10,21 +10,11 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
#define LEN 1000
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
int main(){
|
18
|
-
|
19
|
-
|
13
|
+
void fun(double x[], int len, int N, double delta) {
|
20
14
|
|
21
15
|
int i;
|
22
16
|
|
23
|
-
double x[LEN];
|
24
|
-
|
25
|
-
const double delta = 1.0e-3;
|
26
|
-
|
27
|
-
for ( i = 0; i <
|
17
|
+
for ( i = 0; i < len; i++ ) {
|
28
18
|
|
29
19
|
int n;
|
30
20
|
|
@@ -46,6 +36,24 @@
|
|
46
36
|
|
47
37
|
}
|
48
38
|
|
39
|
+
}
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
#define LEN 1000
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
int main(){
|
48
|
+
|
49
|
+
const int N = 10;
|
50
|
+
|
51
|
+
double x[LEN];
|
52
|
+
|
53
|
+
const double delta = 1.0e-3;
|
54
|
+
|
55
|
+
fun(x, LEN, N, delta);
|
56
|
+
|
49
57
|
return 0;
|
50
58
|
|
51
59
|
}
|