What can I safely assume about the initial values of variables which are not explicitly initialized?
No Answer is Posted For this Question
Be the First to Post Answer
Refer to a name of class or function that is defined within a namespace?
write the code that display the format just like 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 6 5 4 3 2 1
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
What is binary search in c++?
Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?
Is it possible to write a c++ template to check for a function's existence?
Is there something that we can do in C and not in C++?
program to print this triangle * * * * * *
What is iterator in c++?
What are different types of loops in c++?
What are the manipulators in c++?
write a programme to get a character and thier ASCII value