善意の提醒

P1022 [NOIP2000 普及组] 计算器的改良

我喜欢scanf,读的快
by 传奇英雄 @ 2018-01-30 20:52:30


```cpp #include<iostream> #include<cstdio> #include<string> using namespace std; char s[205]; //定义1个名称为s长度为205的字符串 int main() { scanf("%s",&s);//输入字符串s printf("%s",s);//输出字符串s return 0; } ```
by 传奇英雄 @ 2018-01-30 20:56:43


scanf printf用法 scanf("%d",&a);//读入int型的a scanf("%d%d",&a,&b);//读入int型的a,b printf("%d",x);//输出int型的x printf("%.2f",&m);//将m保留2为小数输出
by 传奇英雄 @ 2018-01-30 21:03:03


scanf printf用法 ```cpp scanf("%d",&a);//读入int型的a scanf("%d%d",&a,&b);//读入int型的a,b printf("%d",x);//输出int型的x printf("%.2f",m);//将m保留2为小数输出 ```
by 传奇英雄 @ 2018-01-30 21:03:37


printf不加& scanf必须加&
by 传奇英雄 @ 2018-01-30 21:04:28


“ios::sync_with_stdio(false)"可以加速cin
by tblgst @ 2018-02-07 19:54:14


|