我们课程的PLC机型选择了以下哪一种
A: FP一X C14R
B: FP一X C30R
C: FP1 C14,C16
D: FP1 C24,C40
A: FP一X C14R
B: FP一X C30R
C: FP1 C14,C16
D: FP1 C24,C40
举一反三
- 若有定义FILE *fp; 以“只读”方式打开文件C:\test\myfile.txt的正确语句是 A: fp = fopen("C:\test\myfile.txt","r"); B: fp = fopen("C:\\test\\myfile.txt","r"); C: fp = fopen("C:\test\myfile.txt",'r'); D: fp = fopen("C:\\test\\myfile.txt",'r');
- 以只读方式打开一个已存在的文本文件ab.txt,以下选项中正确的是______。A. FILE *fp;fp=fopen("ab.txt","a");B. FILE *fp;fp=fopen("ab.txt","w");C. FILE *fp;fp=fopen("ab.txt","r");D. FILE *fp;fp=fopen("ab.txt","rb+"); A: FILE *fp;fp=fopen("ab.txt","a"); B: FILE *fp;fp=fopen("ab.txt","w"); C: FILE *fp;fp=fopen("ab.txt","r"); D: FILE *fp;fp=fopen("ab.txt","rb+");
- 以下程序的功能是将文件exam1.c的内容复制到exam2.c中,请填空。 #include<stdio.h> main() { FILE *fp,*fp; fp1=fopen(___①___); fp2=fopen(___②___); while(!feof(fp1)) fputc(__③___); fclose(fp1); fclose(fp2); }
- 若要用只读方式打开d:\a.txt文件,则需要执行() A: FILE *fp;fp=fopen(d:\a.txt,r); B: FILE *fp;fp=fopen(d:\\a.txt,r); C: FILE *fp;fp=fopen(d:\a.txt,r+); D: FILE *fp;*fp=fopen(d:\a.txt,w)
- 以只读方式打开一个已存在的文件文本ab.txt,以下选项中正确的是_____。 A: FILE *fp, fp=fopen(“ab.txt”,“a”); B: FILE *fp, fp=fopen(“ab.txt”,“w”); C: FILE *fp, fp=fopen(“ab.txt”,“r”); D: FILE *fp, fp=fopen(“ab.txt”,“rb+”);