Issue When Executing my Program (And other questions)

Hey C++,

I'm a bit new to programming. And as in new, I mean I've only been programming for a couple of weeks. Now for my issue. I wrote a very rudimentary program in which a user inputs rectangle coordinates and then inputs query coordinates. The program is built to tell the user where the query coordinates lie in relation to the rectangle. My program compiles and executes, minus one small problem. When the program gets the query coordinates, it immediately shuts down without telling me where the points are in relation to the rectangle. I searched around the C++ forums and I can't seem to find a solid answer without drastically changing my code (Or including a loop, which I'm not allowed to do).

Can anyone help me figure out how to fix this problem? I'm using Dev C++, so if you have a better editor/compiler I could use, that would be nice. Additionally, I can post the code if needed.

Thanks a lot C++.
add cin.ignore().get(); before returning. or is that not it?
That seems to work perfectly! The professor didn't tell us how to keep programs open because the compiler in the lab doesn't close out when finished, rather, it keeps all data on the screen. So even when the program is finished executing, you can see that it worked correctly. Thanks a lot!
Topic archived. No new replies allowed.