题目
#include void main() { int a,b; float x,y; char c1,c2; scanf("a=%d b=%d",&a,&b); scanf("%f
#include
void main()
{
int a,b;
float x,y;
char c1,c2;
scanf("a=%d b=%d",&a,&b);
scanf("%f%e",&x,&y);
scanf("%c%c",&c1,&c2);
printf(%d%d%f%f%c%c);
}
老运行不正常 请 大侠知道错误 提示如下
Compiling...
lianxi1-3.cpp
e:\c程序源码文件包\lianxi1-3.cpp(10) :error C2143:syntax error :missing ')' before '%'
e:\c程序源码文件包\lianxi1-3.cpp(10) :error C2660:'printf' :function does not take 0 parameters
e:\c程序源码文件包\lianxi1-3.cpp(10) :error C2065:'d' :undeclared identifier
e:\c程序源码文件包\lianxi1-3.cpp(10) :error C2065:'f' :undeclared identifier
e:\c程序源码文件包\lianxi1-3.cpp(10) :error C2065:'c' :undeclared identifier
e:\c程序源码文件包\lianxi1-3.cpp(10) :error C2059:syntax error :')'
Error executing cl.exe.
#include
void main()
{
int a,b;
float x,y;
char c1,c2;
scanf("a=%d b=%d",&a,&b);
scanf("%f%e",&x,&y);
scanf("%c%c",&c1,&c2);
printf(%d%d%f%f%c%c);
}
老运行不正常 请 大侠知道错误 提示如下
Compiling...
lianxi1-3.cpp
e:\c程序源码文件包\lianxi1-3.cpp(10) :error C2143:syntax error :missing ')' before '%'
e:\c程序源码文件包\lianxi1-3.cpp(10) :error C2660:'printf' :function does not take 0 parameters
e:\c程序源码文件包\lianxi1-3.cpp(10) :error C2065:'d' :undeclared identifier
e:\c程序源码文件包\lianxi1-3.cpp(10) :error C2065:'f' :undeclared identifier
e:\c程序源码文件包\lianxi1-3.cpp(10) :error C2065:'c' :undeclared identifier
e:\c程序源码文件包\lianxi1-3.cpp(10) :error C2059:syntax error :')'
Error executing cl.exe.
提问时间:2021-02-04
答案
#includevoid main(){int a,b;float x,y;char c1,c2;scanf("a=%d b=%d",&a,&b);scanf("%f%f",&x,&y);scanf("%c%c",&c1,&c2);printf("%d,%d\n%f,%f\n%c,%c\n",a,b,x,y,c1,c2);}
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
最新试题
热门考点
- 1一个半圆的面积是18π,它的周长是?
- 2英语翻译
- 3输出功率保持10kW的起重机吊起500kg的物体从静止开始运动,当升高到2m时速度达到最大,求此时最大速度和完成此过程所需的时间?
- 4底数为负数指数相同怎么比较大小?
- 51克铀可以产生多少能量?
- 6有四只盒子,共装了45个小球.如变动一下,第一盒减少2个;第二盒增加2个;第三盒增加一倍;第四盒减少一半,那么这四只盒子里的球就一样多了.原来每只盒子中各有几个球?
- 7氟元素氯元素能形成哪些化合物?谢谢!
- 8如果cos2θ+2msinθ-2m-2<0对任意的θ总成立,求常数m的取值范围.
- 9枫桥夜泊的诗句是什么
- 10一个玩具厂做一批“福娃”,原来每个“福娃”需要5.4元的材料,后来改进了制作技术,每个只需要4.5元的材料.原来准备做200个“福娃”的材料,现在可以做多少个?