I use a loop to output the number to * 1.57 at each intersection of the lines, but I’m instead showing Chinese characters, help me solve the problem, please. I think the problem is either in sprintf or in the LPCWSTR transform, but it is not compiled without it.
float k; for (int i = 0; i < 20;i++) { k = 0; k = 1.57*i; char buff[100]; sprintf(buff, "%f", k); TextOut(hdc, x0 + dx*i*1.57, yc, (LPCWSTR)buff, 5); } 