Is it possible for the objects to read and write themselves?
No Answer is Posted For this Question
Be the First to Post Answer
Problem 5: Hero's Formula is A method for calculating the area of a triangle when you know the lengths of all three sides. Let a, b, c be the lengths of the sides of a triangle. The area is given by:A= pp-ap-b(p-c) | wherep= a+b+c2 | | Write a C-language code to calculate area of triangle using above method. Take the three lengths of the triangle from the user and display the area that your program calculates.
class A { public: void f(); protected: A() {} A(const A&){} }; Examine the class declaration shown above. Why are the default and copy constructors declared as protected? 1. To ensure that A cannot be created via new by a more derived class 2. To ensure that A cannot be copied 3. To ensure that A cannot be used as a base class except when public inheritance has been used 4. To ensure that A cannot be created/copied outside the inheritance chain 5. To ensure that A cannot be instantiated as a static variable
write a program that takes 5 digit no and calculate 2 power that no and print it.
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
What is #include cmath?
What do you mean by internal linking and external linking in c++?
Why do we use templates?
Explain about Virtual Function in C++?
What is the difference between while and do while loop?
What are all predefined data types in c++?
Where can I run c++ program?
What and all can a compiler provides by default?