Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
全部,
假设我有 2 个双精度值:
3.567 0.412
我想将它们显示为:
3.567 .412
为了实现这一点,我应该将哪种格式传递给 printf()?该格式应处理这两种情况。
谢谢你。