I have this code:
When dx is larger than dy In the last line 'a' is always. In debug it acts like a is an Int. I don't get it.Code:int x,y; long a=0,b=0,dx=0,dy=0; dx=x1-x0; dy=y1-y0; a=dy/dx; b=y0-a*x0;
|CodeGuru Home||VC++ / MFC / C++||.NET / C#||Visual Basic||VB Forums||Developer.com|
Results 1 to 3 of 3
Thread: Annoying problem
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.