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

Why we use #include iostream in c++?

0 Answers  


const char * char * const What is the differnce between the above two?

11 Answers   TCS,


Should you pass exceptions by value or by reference?

0 Answers  


Can recursive program be written in C++?

0 Answers  


CAN U SAY WHICH PROGRAMING LANGUAGE IS USED BY DOCTORS....?

1 Answers  






declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator

0 Answers  


What is protected inheritance?

0 Answers  


What is the use of function pointer?

0 Answers  


How do I write a c++ program?

0 Answers  


What is the difference between object-oriented programming and procedural programming?

0 Answers  


What is the best c++ compiler?

0 Answers  


Why are pointers not used in c++?

0 Answers  


Categories