Reads in the size of a square from the screen;
2. Prints a hollow square of that size out of “-“, “|” and
blanks on screen;
3. Prints the same hollow square onto a text file.
Your program should work for squares of all side sizes
between 1 and 20.
---
│ │
│ │
│ │
---
No Answer is Posted For this Question
Be the First to Post Answer
Where the memory to the static variables is allocated?
Explain the concept of friend function in c++?
What is a constructor in c++ with example?
Explain virtual class?
Write a program to calculate the BMI of a person using the formula BMI = weight/height2.
What are manipulators in c++ with example?
how is returning structurs from functions?Show an eg?
What is the use of 'this' pointer?
What is c++ hiding?
What are the two types of comments, and how do they differ?
What are the new features that iso/ansi c++ has added to original c++ specifications?
In what situations do you have to use initialization list rather than assignment in constructors?