I have written this program, which compiles with no warnings and no errors, but when I run it, it seems to either freeze with the error "Unhandled exception at 0x01181c67 in wk2.exe: 0xC0000094: Integer division by zero." and I have to click on break from the box that pops up or the program just continues looping infinitely. Any ideas as to what is wrong?
I'm just wondering, to anyone who may know, why this program takes ages to link after compilation? It also takes a few seconds to do anything when running it. I've noticed a few programs doing this (maybe when using cin >>). I'm using VS 2008.