>>But less fun.
Ah, yes - the butter of life. I personally find it satisfying to unscrew the case and short the motherboard in a strategic location. I've located several hotspots that work a charm, and even managed on one occasion to close just the target window

Now, the challenge is to build a robotic arm that attaches universally to any case, and write a platform- and case-independent program that causes the arm to reach over, unscrew the case, locate an appropriate shorting point, and then close the application via hardware. Bonus marks if the arm puts the computer back together afterward

Must be an old version of Dev-C++. Mine uses iostream but still uses system("PAUSE"). High schools seem to be notorious for using out of date software. Usually because of a budget situation but in this case since Dev-C++ is free there is no excuse, but it still doesn't surprise me.

Did you try opening the window, grabbing the computer, stick it out of the window and release it? That might stop the program [especially if you're on the 3d floor or so]. If that didn't help, buy a new computer.