How do I get good at c++ programming?
No Answer is Posted For this Question
Be the First to Post Answer
How can you say that a template is better than a base class?
class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData
Keyword mean in declaration?
When is a template a better solution than a base class?
What is the error in the code below and how should it be corrected?
Ask to write virtual base class code?
Is c++ an integer?
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.
What are the basics concepts of OOPS?
What is a c++ map?
What is iterator in c++?
What is cloning?