Sudden windows shut down during programming with Borland C++ followed by a blue screen!
This problem has happened to me twice.Both times during programming with Borland C++.when i wanted to run the simple code bellow:(completely what I wrote)
int n, total=0, counter=1,average;
while ( n )
{
   cin >> n;
   total = total + n;
   average = total / counter;
   counter++;
   cout <<average<<end开发者_StackOverflow中文版l;
}
BSOD is almost always a hardware or driver issue. It could be that a particular sequence of program operations is exercising something that is failing.
Best thing to do is look at the memory dump in MS' analyzer to see if that points to a specific software item.
 
         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论