hello i have a code i can compile it. but once i run it it starts doing errors.
i think it is because an infinite loop but i dont see where.
here is code
Give your variables more meaningful names than "a", that's currently the main problem with your code.
You can still stop the debugger at any point to see what your program keeps executing.
But even without knowing what your program is supposed to be doing, this looks like an infinite loop: for (x=1;x<=max;max=max) {
And that is wrong too:
1 2
delete b;
delete c;
You have to use delete[] to free objects allocated with new[].
In future, use std::vector when you need a dynamic array.