重要提示:请勿将账号共享给其他人使用,违者账号将被封禁!
查看《购买须知》>>>
首页 > 大学专科> 电子信息
网友您好,请在下方输入框内输入要搜索的题目:
搜题
拍照、语音搜题,请扫码下载APP
扫一扫 下载APP
题目内容 (请给出正确答案)
[主观题]

若有以下程序: #include"stdio.h" main() { char c1,c2; float f1,f2; scanf(&qu

若有以下程序:

#include"stdio.h"

main()

{

char c1,c2;

float f1,f2;

scanf("%c%f%c%f",&c1,&f1,&c2,&f2);

printf("%c,%f,%c,%f",c1,f1,c2,f2);

}

要求给c1、c2输入字符A和B,给f1和f2输入12.34和98.765,从键盘正确输入数据的形式是______。

答案
查看答案
更多“若有以下程序: #include"stdio.h" main() { char c1,c2; float f1,f2; scanf(&qu”相关的问题

第1题

若有以下程序:  #include <iostream>  using namespace std;  class Base  {  private:   int a,b;  public:   Base(int x, int y)   {     a=x;     b=y;   }   void disp ()   {     cout<<a<<" "<<b<<end1;   }  };  class Derived : public Base  {  private:   int c;   int d;  public:   Derived(int x,int y, int z,int m) :Base(x,y)   {     c=z;     d=m;   }   void disp ()   {     cout<<c<<" "<<d<<end1;   }  };  int main()  {   Base b(5,5),*pb;   Derived obj(1,2,3,4);   pb=&obj;   pb->disp();   return 0;  }  执行程序后的输出结果是()。

A.1,2

B.3,4

C.2,3

D.5,5

点击查看答案

第2题

有以下程序 include <lostream> using namespace std; int main() { int

有以下程序 include <lostream> using namespace std; int main() { int i=010,j=10; cout<<(i)<<","<<j--<<endl; return 0; } 则该程序运行后的输出结果是【 】。

点击查看答案

第3题

有以下程序:#include<iostream>using namespace std;class R{public:R(int r1,int r2){R1=r1;R2=

有以下程序: #include<iostream> using namespace std; class R { public: R(int r1,int r2) { R1=r1; R2=r2; } void print(); void print0const; private: int R1,R2; }; void R::print() { cout<<R1<<","<<R2<<endl; } void R::print() const { cout<<Rl<<","<<R2<<endl; } int main() { R a(5,4); const R b(20,52); b.print(); return 0; } 执行后的输出结果是()。

A.5,4

B.20,52

C.0,0

D.4,5

点击查看答案

第4题

若有以下程序 include<stdio.h> main(){ inta=-11.b=10; a/=b/=4: printf(%d%d\n,a,b);

若有以下程序 include<stdio.h> main(){ inta=-11.b=10; a/=b/=4: printf(%d%d\n,a,b);} 则程序的输出结果是

A.-1-2

B.5-2

C.4-3

D.41762

点击查看答案

第5题

若有以下程序 include<stdio.h> main(){ charcl,c2; c1=C+8-3: c2=9-0; printf(%c%d\n

若有以下程序 include<stdio.h> main(){ charcl,c2; c1=C+8-3: c2=9-0; printf(%c%d\n,c1,c2); } 则程序的输出结果是

A.H9

B.H"9"

C.F"9"

D.表达式不合法输出无定值

点击查看答案

第6题

若有以下程序 include<stdio.h> yoidsp(int*a){ intb=2: a=&b: *a=*a*2: printf(%d,,*a);}

若有以下程序 include<stdio.h> yoidsp(int*a){ intb=2: a=&b: *a=*a*2: printf(%d,,*a);} main(){intk=3,*P=&k; sp(p); printf(%d,%d\n,k,*p);) 则程序的输出结果是

A.4,3,4

B.4,3,3

C.6,3,6

D.6,6,6

点击查看答案

第7题

若有以下程序 include<stdio.h> main(){ inta=0,b=0,c=0c=(a+=++b,b+=4); printf(%d,%d,

若有以下程序 include<stdio.h> main(){ inta=0,b=0,c=0c=(a+=++b,b+=4); printf(%d,%d,%d\0n,a,b,c);) 则程序的输出结果是

A.1,5,1

B.-1,4,4

C.1,5,5

D.-1,4,-1

点击查看答案

第8题

以下程序用来统计文件中字符的个数(函数feof用以检查文件是否结束,结束时返回非零) include<std

以下程序用来统计文件中字符的个数(函数feof用以检查文件是否结束,结束时返回非零) include<stdio.h> main(){ FILE*fp; longnum=0: fp=fopen(fname.dat,r); while(________){ fgetc(fp);num++;) printf(num=%din,num); fclose(fp);) 下面选项中,填入横线处不能得到正确结果的是

A.feof(fp)

B.reot(rp)=NULL

C.!feof(fp)

D.feof(fp)=0

点击查看答案

第9题

若有以下程序 include<stdio.h> main(){ inta=0,b=0,c=0; c=(a-=++a),(a+=b,b+=4); pri

若有以下程序 include<stdio.h> main(){ inta=0,b=0,c=0; c=(a-=++a),(a+=b,b+=4); printf(%d,%d,%d\n,a,b,c);) 则程序的输出结果是

A.0,4,4

B.1,4,1

C.0,4,0

D.174,4

点击查看答案
下载APP
关注公众号
TOP
重置密码
账号:
旧密码:
新密码:
确认密码:
确认修改
购买搜题卡查看答案 购买前请仔细阅读《购买须知》
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《服务协议》《购买须知》
立即支付 系统将自动为您注册账号
已付款,但不能查看答案,请点这里登录即可>>>
请使用微信扫码支付(元)

订单号:

遇到问题请联系在线客服

请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系在线客服
恭喜您,购买搜题卡成功 系统为您生成的账号密码如下:
重要提示:请勿将账号共享给其他人使用,违者账号将被封禁。
发送账号到微信 保存账号查看答案
怕账号密码记不住?建议关注微信公众号绑定微信,开通微信扫码登录功能
请用微信扫码测试
优题宝