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
Which bit wise operator is suitable for turning off a particular bit in a number?
What is the difference between const and constexpr?
Explain what is oop?
State the difference between pre and post increment/decrement operations.
What is basic if statement syntax?
Is empty stack c++?
Using a smart pointer can we iterate through a container?
Write some differences between an external iterator and an internal iterator?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
Explain method of creating object in C++ ?
What are the various access specifiers in c++?
What's the order in which the objects in an array are destructed?