diff options
Diffstat (limited to 'CST116F2021-Lab4')
| -rw-r--r-- | CST116F2021-Lab4/RunFromLab4_Schroeder.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/CST116F2021-Lab4/RunFromLab4_Schroeder.txt b/CST116F2021-Lab4/RunFromLab4_Schroeder.txt index d4a3cb2..5ed1472 100644 --- a/CST116F2021-Lab4/RunFromLab4_Schroeder.txt +++ b/CST116F2021-Lab4/RunFromLab4_Schroeder.txt @@ -358,10 +358,10 @@ int main() // Program to draw a rectangle on the screen of user defined void DrawRect(int height,int width) //Function that draws the rectangle
{
//Top
- string line(width,char(196));
- line[0] = char(218);
- line[width-1] = char(191);
- cout << line<<"\n";
+ string top(width,char(196));
+ top[0] = char(218);
+ top[width-1] = char(191);
+ cout << top<<"\n";
//Sides
string sides(width, char(32));
|