皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
以下程序的功能是将 C 语言源程序文件 exam.c 中用斜杠与星号括起来的非嵌套注释删除,然后存入文件 exam.out 中。请填入适当内容。 #include "stdio.h" void delcomm(FILE *fp1,FILE *fp2) { int c,i=0; while (( 2 )!=EOF) if (c=='\n') fprintf(fp2,"\n"); else switch (i) { case 0: if (c=='/') i=1; else fprintf(fp2,"%c",c); break ; case 1: if (c=='*') i=2; else {fprintf(fp2,"%c",c);i=0;} break ; case 2: if (c=='*')i=3; break ; case 3:i=(c=='/')? 3 ; break ; } } int main() { FILE *fp1,*fp2; fp1=fopen("exam.c","r"); fp2=fopen("exam.out","w"); delcomm( 1 ); fclose( fp1 ); fclose( fp2 ); return 0; }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】I am considering his letter.
A.
to answer
B.
how answering
C.
to be answering
D.
how to answer
【判断题】I am considering to accept your offer.
A.
正确
B.
错误
【单选题】6502电气集中,发车方向单置调车信号机按钮作为接车方向调车进路变通按钮时,其AJ用()作为励磁条件之一。
A.
KF-共用-Q
B.
KF-DFJ-Q
C.
KZ-列共-LFJ-Q
D.
KZ-列共-DJJ-Q
【单选题】I am considering ______ your advice.
A.
to accept
B.
to receive
C.
accepting
D.
receiving
【简答题】Long Conversations-B listen to the following 2 long conversations and choose the best answers. the conversations will be spoken only once Conversation 1: 1. ______ A .It is about photography courses. ...
【简答题】IV . Choose the best answers. ( ) 1. My aunt ___________ us next month. A. is visit B. visit C. is going visit D. is going to visit ( ) 2. Look at the clouds. It _________ rain. A. ...
【单选题】6502电气集中,发车方向单置调车信号机按钮作为接车方向调车进路变通按钮时,其AJ用() 作为励磁条件之一。
A.
.KF-共用-Q
B.
KF-DFJ-Q
C.
KZ-列共-DJJ-Q
D.
KZ-列共DFJ-Q
【单选题】发车方向单置调车信号机按钮作为接车方向调车进路变通按钮时,其AJ用()为励磁条件之一。
A.
KF-共用-Q
B.
KF-DFJ-Q
C.
KZ-列共-LFJ-Q
D.
KZ-列共-DJJ-Q
【简答题】Choose the best answers. ( ) 1. My aunt ___________ us next month. A. is visit B. visit C. is going visit D. is going to visit ( ) 2. Look at the clouds. It _________ rain. A. will ...
【单选题】被用于治疗白血病的烈性毒药是?
A.
砒霜
B.
氰化物
C.
马钱子碱
D.
马兜铃酸
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题