d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Question For A C++ Project
Add Reply New Topic New Poll
Member
Posts: 16,909
Joined: Aug 14 2009
Gold: 0.00
Mar 27 2015 06:18pm
Main main file: http://pastebin.com/6pfeR8qY
My circle.h file: http://pastebin.com/biXej0LF
The error that I'm getting.

I did a bit of googling and all I could find about the error was that the variable was trying to hold more slots that the datatype will allow. I'm fairly confident that it has something to do with my calcLens function when I do anything that has to do with radians. If anyone could give me any insight as to how to fix this, that would be awesome.

/e
I guess I should add the actual assignment.
http://krypton.mnsu.edu/~an5239ke/public/cs111/111home.html

This post was edited by zell1luk on Mar 27 2015 06:40pm
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
Mar 27 2015 06:46pm
just debug through and find which values don't match up

simple math stuff so shouldn't take more than a few minutes to find the problem

the error seems to happen when you overflow or divide by 0 (or try to represent imaginary numbers. Make sure your sqrt function calls are correct)

This post was edited by Eep on Mar 27 2015 06:47pm
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll