Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Visual Studio C++ 2010 stops working after edit.

$
0
0

I've been using Visual C++ for about a week now and I've come across this peculiar problem ever since I started. When I write a program and debug, the compiler gives a "MC Visual C++ has stopped working" prompt and restarts. When I open the program again and try to debug, the compiler executes the program with no problem. Then, when I edit the program and try to debug, the compiler needs to restart again before it executes successfully. Is this standard procedure for Visual Studio or is something wrong with mine? I checked the "Edit and Continue" option in the settings, and that hasn't done anything. I've tried reinstalling multiple times and still no success.

Here's an example of the type of code I put:

#include <iostream>
using namespace std;

#define IRO 6.9
#define NEWLINE '\n'

int main ()
{
	double r=5.0;
	double circle;
	circle = 2 * IRO * r;
	cout << circle;
	cout << NEWLINE;
	cin.get();
	return 0;
}

Am I doing something wrong? Is their something wrong with my compiler? Is this "edit, restart and debug" standard operating procedure?


Viewing all articles
Browse latest Browse all 15302


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>