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 pointer with example?

0 Answers  


What is data abstraction? How is it different from data encapsulation?

0 Answers  


Should I learn c++ c?

0 Answers  


How would you stop a class from class from being derived or inherited?The constructer should not be Private,as object instantiation should be allowed.

15 Answers   Satyam,


Explain public, protected, private in c++?

0 Answers  






What is function prototyping? What are its advantages?

0 Answers  


Write a corrected statement in c++ so that the statement will work properly. if (x > 5); y = 2*x; else y += 3+x;

1 Answers  


What is the difference between delegation and implemented-in-terms-of?

0 Answers  


When should you use global variables?

0 Answers  


Which one is better- macro or function?

0 Answers   Fidelity,


What are the important differences between c++ and java?

0 Answers  


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

4 Answers   Webyog,


Categories