当前位置: > #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
#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的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.