最新回答 / 慕用8169764
这是 printf 的第一个参数,是一个用双引号括起来的字符串。它不仅包含需要原样输出的普通文本,还包含特殊的 格式声明(也叫占位符)。格式声明以百分号 % 开头,后面跟特定的格式字符(如 d, f, s 等),用于指定后续参数的输出格式
2025-09-01
最新回答 / 慕娘4019749
#include <iostream>#include <stdio.h> using namespace std;int main(){ double a,b; char s; scanf("%lf%c%lf",&a,&s,& b); if(s=='+') cout&;&l&;s&a&;&l&;b&s&;&l&;"=b<<"="& &if(a+b; if(s=='-') c...
2025-08-27
最新回答 / Dragon223
main函数的大括号错了。#include<iostream>#include <stdio.h>struct pupil{ int maths; int english;};int main(){ struct pupil pup[50]; pup[20].maths = 95; pup[20].english = 93; std::cout << pup[20].maths << std::endl; ...
2025-04-11