首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
自考
C盘中P1.c.txt文件的内容为:abcdeo A盘中P1.c.txt为空文档。 #include #include main() { FILE*f1*f2; int k; if(( f1=fopen("C
C盘中P1.c.txt文件的内容为:abcdeo A盘中P1.c.txt为空文档。 #include #include main() { FILE*f1*f2; int k; if(( f1=fopen("C
admin
2016-12-25
29
问题
C盘中P1.c.txt文件的内容为:abcdeo A盘中P1.c.txt为空文档。
#include
#include
main()
{ FILE*f1*f2;
int k;
if(( f1=fopen("C:\\p1.c.txt","r"))==NULL)
{ printf("can not open file!\n");
exit(0);
}
if((f2=fopen( "A:\\p1.c.txt","w"))==NULL)
{ prlintf( "can not open file!\n");
exit(0);
}
for(k=l;k<=500;k++)
{ if( feof( f1)) break;
fputc(fgetc( f1) ,f2);
}
fc10se( f1);
fc10se(f2);
}
以上程序的功能是________。
选项
答案
把C盘中的P1.c.txt文件复制到A盘的P1.c.txt中。
解析
转载请注明原文地址:https://kaotiyun.com/show/8tAx777K
本试题收录于:
高级语言程序设计题库理工类分类
0
高级语言程序设计
理工类
相关试题推荐
有一个程序:输入3个整数ABC,把这3个数看成是一个三角形的3条边。这个程序要输出信息,来说明这个三角形的几种情况:是三边不等的、是等腰的、还是等边的。请根据给出的说明,用等价类划分法设计该问题的测试用例(要求写出设计过程)。
________指的是客观存在的事物或属性从某个角度看不到,它带来的好处是简化某级的设计,带来的不利是无法控制。
具有编号0~7的8个部件,采用三级立方体互连网络实现通信,使用双功能交换单元、级控制方式。欲实现2#→5#部件通信,分别指出三种互连网络中涉及的交换单元及其功能。
________、________、________属于全用户片设计的特点。
控制字符SYN的ASCⅡ码编码为0010110,请画出SYN的FSK、NRZ、曼彻斯特编码和差分曼彻斯特编码四种编码方案的波形图。
在TCP/IP层次中,定义数据传输设备和传输媒体或网络间接口的是
已知关系模式:学生(学号,姓名,性别,年龄,系别),选课(学号,课程号,成绩),用关系代数实现查询没有选修课程号为′C5′课程的学生学号。
#includeintf=1;intfac(intn){f=f*n;returnf;}main(){inti;for(i=1;i<=4,i++){print
main(){charn;scanf("%e",&n);switch(++n){default:printf("error");break;ease’a’:case’A’:
下列运算符,优先级最低的是()
随机试题
喻象
肺胀痰热郁肺证的治法是()(2009年第66题)
天然气的流速与哪些因素有关?
固定宫颈在正常位置,防止子宫下垂的主要韧带是
因发生不可抗力造成承包方设备、机械的损坏及停工等损失,由( )承担。
某施工单位中标承担了一副井井筒工程,该副井井筒净直径5m,掘进荒径6~7m,井筒深度720m,两侧马头门各施工20m,包含相关设备基础,管子道开口施工5m,该项目合同工期12个月,自签订合同之日起算,井筒平均进尺85m/月。井筒施工工期合同签订之后,项目经
【背景资料】某电站工程项目为两台300t燃煤锅炉,其合同内的工作包括土建施工、锅炉本体及配套设备安装、电气工程施工、仪表自控工程施工、工艺及公共管道施工,建设工期为20个月。工程特点为:工程量大、工期紧、技术难度高、质量要求严、场地小。
背景某单层工业厂房工程施工,拆除顶层钢模板时,将拆下的25根钢管(每根长4.5m)和扣件运到井字架的吊篮上,6名工人准备随吊篮一起从屋顶下落到地面。此时恰好操作该吊篮的专职司机上厕所不在岗,临时由附近施工的一名普工开动卷扬机。在卷扬机下降过程中,钢丝绳
若选定多个连续文件,应先单击选定第一个文件,然后按下______键,再单击要选定的最后一个文件;若要选定多个不连续的文件,可以在按下______键的同时分别单击其他文件。
下列关于Serv-UFTP服务器的描述中,正确的是()。
最新回复
(
0
)