diff options
| author | till-t <[email protected]> | 2021-10-26 22:42:54 -0700 |
|---|---|---|
| committer | till-t <[email protected]> | 2021-10-26 22:42:54 -0700 |
| commit | 5003497305cb063c4ea61fd270b10cf2bddb589e (patch) | |
| tree | 3cfdfa7312e7fcaa23d998349c4f72844c604977 /CST116F2021-Lab4/Lab4_Taormina | |
| parent | End of day. Completed all exercises. (diff) | |
| download | cst116-lab4-till-t-master.tar.xz cst116-lab4-till-t-master.zip | |
Diffstat (limited to 'CST116F2021-Lab4/Lab4_Taormina')
| -rw-r--r-- | CST116F2021-Lab4/Lab4_Taormina | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/CST116F2021-Lab4/Lab4_Taormina b/CST116F2021-Lab4/Lab4_Taormina index 47a5f0c..75b0f29 100644 --- a/CST116F2021-Lab4/Lab4_Taormina +++ b/CST116F2021-Lab4/Lab4_Taormina @@ -377,17 +377,17 @@ void draw (int w, int h) { int i; cout << char(218); - for (int i = 0; i <= (w - 2); i++) + for (int i = 0; i <= (w); i++) cout << char(196); cout << char(191) << endl; - for (int i = 0; i <= (h - 1); i++) { + for (int i = 0; i <= (h); i++) { cout << char(179); - for (int i = 0; i <= (w - 2); i++) + for (int i = 0; i <= (w); i++) cout << " "; cout << char(179) << endl; } cout << char(192); - for (int i = 0; i <= (w - 2); i++) + for (int i = 0; i <= (w); i++) cout << char(196); cout << char(217); } |