我正在尝试为 lcd 创建动态 printf 大小,但它只输出 f= 我做错了什么?
sprintf(buffer, "f=%.2f", (d = d + 0.01)); <-- works but not dynamic
sprintf(buffer, "f=%.*f", 2 , (d = d + 0.01)); <-- Does not any give warning
lcd_puts(buffer);
_delay_ms(100);
我正在尝试为 lcd 创建动态 printf 大小,但它只输出 f= 我做错了什么?
sprintf(buffer, "f=%.2f", (d = d + 0.01)); <-- works but not dynamic
sprintf(buffer, "f=%.*f", 2 , (d = d + 0.01)); <-- Does not any give warning
lcd_puts(buffer);
_delay_ms(100);