EthanX1126 2022-05-04 11:24 采纳率: 66.7%
浏览 105
已结题

c++ 输出文本宽度和对齐问题

img

img

To get good alignment of both text and numbers, use the same length for all the text strings, and use the same width for all the numbers.

All the output numbers should have exactly 6 digits after the decimal points.
The width of all the output numbers should be 15.
The output text should be aligned.

请问怎样要如何修改?

  • 写回答

1条回答 默认 最新

  • A-Chin 2022-05-04 11:56
    关注

    没加头文件

    #include <iostream>
    #include <iomanip>
    
    评论 编辑记录

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 5月4日
  • 赞助了问题酬金10元 5月4日
  • 创建了问题 5月4日