Ask your own question, for FREE!
Computer Science 13 Online
OpenStudy (anonymous):

http://ideone.com/vCU1c when I run this program in my computer, it shows me a scary message saying that "This program has requested the Runtime to terminate it in an unusual way. Please contact the programmer" or something. What is happening?

OpenStudy (farmdawgnation):

So, I suspect this has to do with the line that reads "throw Ball()". Although amusing, it probably isn't syntactically valid to throw something that doesn't extend "exception"... Either that or C++ may just not handle exceptions thrown in main, which would be tacky, but possible.

OpenStudy (anonymous):

http://www.cplusplus.com/doc/tutorial/exceptions/

OpenStudy (jagatuba):

@farmdawgnation: Agreed. I see nothing to throw.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Arriyanalol: i need help
3 days ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
3 days ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!