continue to jump back to the top of your loop.breaking out of the loop rather than using exit(). Exit(), being a C function, isn't safe to use with C++ objects that have something called a destructor (which many if not most do).void main() is evil. Please change it to int main(). :(| OP wrote: | ||
|---|---|---|
I have a simple calculator. for c++
the only problem it has is when i do C or c which is to clear.. it doesnt clear.. it keeps on saying some messages and one other problem it has is .. never mind i do a c or a x (exit) . it asks me once again then only i can exit out.. or clear (but clear goes on for ever) |