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 full form of c++?

0 Answers  


What is const in c++?

0 Answers  


When one must use recursion function? Mention what happens when recursion functions are declared inline?

0 Answers  


What parameter does the constructor to an ofstream object take?

0 Answers  


Explain one method to process an entire string as one unit?

0 Answers  






How would you obtain segment and offset addresses from a far address of a memory location?

0 Answers  


How much maximum can you allocate in a single call to malloc()?

0 Answers  


Describe the main characteristics of static functions?

1 Answers  


What are c++ redistributables?

0 Answers  


Define precondition and post-condition to a member function?

1 Answers  


List out some of the object-oriented methodologies?

1 Answers  


How do you initialize a class member, class x { const int i; };

8 Answers   emc2,


Categories