diff options
| author | Musa Ahmed <[email protected]> | 2022-10-11 20:33:17 -0700 |
|---|---|---|
| committer | Musa Ahmed <[email protected]> | 2022-10-11 20:33:17 -0700 |
| commit | 20cf34e6bbe829fd53b4fbe1da3543f425d11844 (patch) | |
| tree | e802359f15184a6876426b3e78f3bcd1e258551c /CST116-Ch5-Debugging/Project1.cpp | |
| parent | documentation (diff) | |
| download | cst116-proj1-20cf34e6bbe829fd53b4fbe1da3543f425d11844.tar.xz cst116-proj1-20cf34e6bbe829fd53b4fbe1da3543f425d11844.zip | |
decimal places
Diffstat (limited to 'CST116-Ch5-Debugging/Project1.cpp')
| -rw-r--r-- | CST116-Ch5-Debugging/Project1.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/CST116-Ch5-Debugging/Project1.cpp b/CST116-Ch5-Debugging/Project1.cpp index 86396b4..593f4f1 100644 --- a/CST116-Ch5-Debugging/Project1.cpp +++ b/CST116-Ch5-Debugging/Project1.cpp @@ -85,25 +85,25 @@ int main() // Display the first profile cout << left << setw(spacer) << n1 << " " - << left << setw(spacer) << g1 + << left << setw(spacer) << setprecision(3) << g1 << left << setw(spacer) << c1 << endl; // Display the second profile cout << left << setw(spacer) << n2 << " " - << left << setw(spacer) << g2 + << left << setw(spacer) << setprecision(3) << g2 << left << setw(spacer) << c2 << endl; // Display the third profile cout << left << setw(spacer) << n3 << " " - << left << setw(spacer) << g3 + << left << setw(spacer) << setprecision(3) << g3 << left << setw(spacer) << c3 << endl; // Display the fourth profile cout << left << setw(spacer) << n4 << " " - << left << setw(spacer) << g4 + << left << setw(spacer) << setprecision(3) << g4 << left << setw(spacer) << c4 << endl; |