SetPenColor (GREEN);
The SEC=(double) timel - & gt; 6/180 tm_sec * * PI;
X=r_sec * sin (SEC) + cntX;
Y=- r_sec * cos + cntY (SEC);
The second [0] [0]=x;
The second [0] [1]=y;
The second [2] [0]=cntX - (x - cntX)/10;
The second [2] [1]=cntY (y - cntY)/10;
The second [1] [0]=cntX + (second [2] [1] - cntY)/4.
The second [1] [1]=cntY - (second [2] [0] - cntX)/4.
The second [3] [0]=cntX - (second [2] [1] - cntY)/4.
The second [3] [1]=cntY + (second [2] [0] - cntX)/4.
Second, polygon (* 2);
Tip Error is 139 20 C: \ Users \ admin \ Desktop \ work \ main1 CPP [Error] always convert 'int (*) [2]' to 'const POINT * {aka const tagPOINT *}' for argument '1' to 'void polygon (const POINT *, int)'
CodePudding user response:
Error message is clear,,BOOL Polygon (LPPOINT lpPoints, int nCount)
This is the function prototype, the first parameter, it should be a "POINT" type of pointer, in your code, the second variable, obviously, is a two-dimensional array of type int, ah, type matching,