Code::Blocks Forums

User forums => Help => Topic started by: je1318 on July 23, 2013, 10:28:35 am

Title: help codeblocks automatically shut down
Post by: je1318 on July 23, 2013, 10:28:35 am
good day.

i have a problem with the computers here at my laboratory room. i asked my student to make a simple c++ programming code like this

// my first program in C++
#include <iostream>
using namespacestd;
intmain ()
{
cout << "Hello World!";
return0;
}

when they run the program it has no problem but after a second the computer is automatically shut down. i told them to try system ("pause"); or system ("pause>nul"); and to run any c++ program excess in the computer but its also shut down.

please help me to solve the problem. i'm new with code blocks. i think on the problem was the process they install the code blocks.what would be the solution to be done.

thank you.
Title: Re: help codeblocks automatically shut down
Post by: Jenna on July 23, 2013, 10:57:50 am
This is for sure not a Code::Blocks related issue and therefore violating our forum rules !

C::B will never shutdown the system.

Probably (again) a broken/misconfigured antivirus software.
Title: Re: help codeblocks automatically shut down
Post by: je1318 on July 23, 2013, 11:13:38 am
we are using a code blocks here and i have also a code blocks installed in my computer it runs properly.

i asked my student to used to create a project using console but again after the output shown it's again automatically shut down.

what should i do?

Title: Re: help codeblocks automatically shut down
Post by: oBFusCATed on July 23, 2013, 11:58:30 am
what should i do?
Test if your hardware is working correctly.
Check for overheating issue, broken components, etc.
Check if this particular OS is installed and working correctly.
Check for driver issues. Standard PC maintenance tasks.

The windows 98 days are long gone, where a user's software could restart the computer.