What happens if an exception is throws from an, object's constructor and object's destructor?
4 14745Post New C++ General Questions
In what situations do you have to use initialization list rather than assignment in constructors?
Why null pointer is used?
how can i access a direct (absolute, not the offset) memory
address?
here is what i tried:
wrote a program that ask's for an address from the user,
creates a FAR pointer to that adress and shows it. then the
user can increment/decrement the value in that address by
pressing p(inc+) and m(dec-).
NOW, i compiled that program and opened it twice (in 2
different windows) and gave twice the same address to it.
now look what happen - if i change the value in
one "window" of the program, it DOES NOT change in the
other! even if they point to the same address in the memory!
here is the code snippet:
//------------------------------------------------------
#include What is pure virtual function? What is a v-table? Why was c++ made? What are the benefits of pointers? What is cin clear () in c++? Explain rtti. What do you mean by vtable and vptr in c++? Define namespace 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? How do you write a function that can reverse a linked-list? Explain the auto storage classes in c++. Why c++ is so important?