aboutsummaryrefslogtreecommitdiff
path: root/CST116F2021-Lab4/Lab4_Taormina
diff options
context:
space:
mode:
authortill-t <[email protected]>2021-10-26 22:42:54 -0700
committertill-t <[email protected]>2021-10-26 22:42:54 -0700
commit5003497305cb063c4ea61fd270b10cf2bddb589e (patch)
tree3cfdfa7312e7fcaa23d998349c4f72844c604977 /CST116F2021-Lab4/Lab4_Taormina
parentEnd of day. Completed all exercises. (diff)
downloadcst116-lab4-till-t-master.tar.xz
cst116-lab4-till-t-master.zip
Update width and height inside of loops.HEADmaster
Diffstat (limited to 'CST116F2021-Lab4/Lab4_Taormina')
-rw-r--r--CST116F2021-Lab4/Lab4_Taormina8
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);
}