Skip to content

Commit a4db75d

Browse files
authored
docs: Update instructions.md with additional example (#909)
fixes #678
1 parent 6d043d9 commit a4db75d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

exercises/concept/making-the-grade/.docs/instructions.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ round_down_scores(student_scores)
2121
// => {90, 40, 55, 70, 30, 25, 80, 95, 38, 40}
2222
```
2323
24+
There are other methods which achieve the same result, but a _cast_ is a common sight.
25+
26+
```cpp
27+
int new_PI{static_cast<int>(3.14) + static_cast<int>(0.001592653589)};
28+
// new_PI is 3.
29+
```
30+
2431
## 2. Non-Passing Students
2532

2633
As you were grading the exam, you noticed some students weren't performing as well as you'd hoped.

0 commit comments

Comments
 (0)