HELP! My computer restarts every time program is compiled

Hi!

I have a weird problem, my computer restarts imidiately after program writen in dev-cpp is compiled AND run. When I run any program, it lasts about 1 second, then program closes, and computer reboots. It doesn't matter whether program is writen now or earlier, my dev-cpp version is 4.9.9.2. Source code can be as simple as this:

1
2
3
4
5
6
7
8
9
#include <iostream>
#include <conio.h>
using namespace std;

int main()
{
    getch();
    return 0;
}


and it restarts anyway...
Reinstall. While you're at it, maybe upgrade to an IDE that's been updated in the last 7 years.

www.cplusplus.com/articles/36vU7k9E/
Last edited on
Thanks, upgrading to 5.4 helped:)
Topic archived. No new replies allowed.