diff options
| author | BensProgramma <[email protected]> | 2021-10-26 23:08:14 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-26 23:08:14 -0700 |
| commit | 660f01bdb83a44f68d9455ac1ccda96de5e66169 (patch) | |
| tree | 4ccf9cabbb9dc2db02b199d22e45fdd4707f2346 | |
| parent | Update CST116F2021-Lab4.cpp (diff) | |
| download | cst116-lab4-bensprogramma-master.tar.xz cst116-lab4-bensprogramma-master.zip | |
| -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));
|