0

Hello!

After I compile and run my program a windows error message shows up, it doesn't give some specific information it's just a standard windows xp error that asks me to send report.

It gives me the error because in my code I have some basic math like this:

int e = a - b;
int r = c - d;
int w = e / r;

Even if I make a simple console program with only those lines , it still gives me the error.

I'm using the latest version of DEV C++ on windows XP.

2
Contributors
2
Replies
6
Views
5 Years
Discussion Span
Last Post by dot_binary
0

Please post a complete program along with starting values for the variables. I'd make an educated guess that you're dividing by zero, but that's pure speculation given your lack of detail.

0

Yes, that was the problem. Thank you!

In my console program I wrote the variables like this:

int a,b,c,d;

I overlooked division by 0.

Edited by dot_binary

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.