I want to write a C++ language program that:
1. 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.
The 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 is the difference between object-oriented programming and procedural programming?

0 Answers  


Explain what are mutator methods in c++?

0 Answers  


When do we use copy constructors?

0 Answers  


Explain selection sorting?

0 Answers  


What are different types of loops in c++?

0 Answers  






How do I open binary files?

1 Answers  


What is difference between shallow copy and deep copy? Which is default?

1 Answers  


Explain the difference between abstract class and interface in c++?

0 Answers  


What is the difference between struct and class?

1 Answers  


What is a c++ object?

0 Answers  


What is an Iterator class?

1 Answers  


What is the importance of mutable keyword?

0 Answers  


Categories