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

Post New Answer

More C++ General Interview Questions

What do you mean by translation unit in c++?

1 Answers  


What is the role of static keyword for a class member variable?

0 Answers  


How does code-bloating occur in c++?

0 Answers  


What is the full form nasa?

0 Answers  


Will rust take over c++?

0 Answers  






What are the difference between reference variables and pointers in C++?

1 Answers  


What are the rules for naming an identifier?

0 Answers  


catch(exception &e) { . . . } Referring to the sample code above, which one of the following lines of code produces a written description of the type of exception that "e" refers to? a) cout << e.type(); b) cout << e.name(); c) cout << typeid(e).name(); d) cout << e.what(); e) cout << e;

2 Answers   Quark,


How much is c++ certification?

0 Answers  


What is an inline function in c++?

0 Answers  


What is array give example?

0 Answers  


Why we use #include iostream in c++?

0 Answers  


Categories