Hi,
mal ne Frage, wie rundet man in C++ ?
Code:
void PaintCircles(void)
{
INT k;
if(isMouseDown)
{
for ( k = 0 ; k < n ; k++ )
{
x = (int)( cos(k * 2 * Pi / n + Phi) * (r1 - r2) ); // <---<<<
y = (int)( sin(k * 2 * Pi / n + Phi) * (r1 - r2) ); // <---<<<
}
}
}
Microsoft eMbedded C++ 4.0
syntax error : '='