int main(void)
{
double d;
char str[] = “123.456”;
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
delay_init(168);
uart_init(115200);
LED_Init();
LCD_Init();
POINT_COLOR=RED;
d=atof(str);
LCD_ShowNum(30,130,200,12,12,str,d);
}
atof() 函数作用是把字符串转换成数值
代码的作用是把字符串“str”和d显示在LCD上
但是编译之后出现错误
main.c(27): error: #140: too many arguments in function call
LCD_ShowNum(30,130,200,12,12,str,d);
不知道什么情况