cout.wid - C+ + 程序设计(04737) - 专业知识收录平台"> cout.wid - C+ + 程序设计(04737) - 专业知识收录平台">
当前位置:首页 > C+ + 程序设计(04737) > 正文内容

将下面程序补充完整,使程序输出的结果为:
ZhangMeng
####201902
最终分数为90.7
#include
#include
#include
using namespace std;
int main()
{
double score=90.657;
int id=201902;
string name="ZhangMeng";
cout.wid

高老师2年前 (2024-03-26)C+ + 程序设计(04737)7

将下面程序补充完整,使程序输出的结果为:
ZhangMeng
####201902
最终分数为90.7
#include
#include
#include
using namespace std;
int main()
{
double score=90.657;
int id=201902;
string name="ZhangMeng";
cout.width(10);
___________< < endl;
cout< < setw(10)< < __________< < id< < endl;
cout< < “最终分数为:“< < setprecision(3)< < score<return 0;
}

cout < < name , setfill ('#') / ”####”注:每题答案有 2 处下划线,每答对一处得 2 分。

扫描二维码免费使用微信小程序搜题/刷题/查看解析。

版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。

本文链接:https://doc.20230611.cn/post/239509.html

分享给朋友: