Skip to content

Commit

Permalink
纠正错误
Browse files Browse the repository at this point in the history
  • Loading branch information
haiduo committed Aug 15, 2019
1 parent 64b177b commit cce2cbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions excersize/ch06.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
return s;
}
(b) void f2(int i) { /* ... */ }
(c) int calc(int v1, int v2) { /* ... */ }
(c) int calc(int v1, int v2) { /* ... */ return ; }
(d) double square (double x) { return x * x; }
```

Expand All @@ -48,8 +48,8 @@ int fact(int i)
{
if(i<0)
{
runtime_error err("Input cannot be a negative number");
cout << err.what() << endl;
std::runtime_error err("Input cannot be a negative number");
std::cout << err.what() << std::endl;
}
return i > 1 ? i * fact( i - 1 ) : 1;
}
Expand Down

0 comments on commit cce2cbf

Please sign in to comment.