Is java based off c++?
What is difference between array and vector in c++?
What is array in c++ pdf?
Write a single instruction that will find the remainder of integral division when x is divided by y. Have the answer stored in z.
Explain the term memory alignment?
please help to write the code of chess game in c++??????????
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
What is a list c++?
Why we use #include iostream in c++?
Can a program run without main in c++?
When can I use a forward declaration?
Are vectors passed by reference c++?
Find out the bug in this code,because of that this code will not compile....... #include <iostream> #include <new> #include <cstring> using namespace std; class balance { double cur_bal; char name[80]; public: balance(double n, char *s) { cur_bal = n; strcpy(name, s); } ~balance() { cout << "Destructing "; cout << name << "\n"; } void set(double n, char *s) { cur_bal = n; strcpy(name, s); } void get_bal(double &n, char *s) { n = cur_bal; strcpy(s, name); } }; int main() { balance *p; char s[80]; double n; int i; try { p = new balance [3]; // allocate entire array } catch (bad_alloc xa) { cout << "Allocation Failure\n"; return 1; }