?? lbsf.cpp
字號:
#include<stdio.h>
#include<stdlib.h>
#include<string>
void main(){
FILE *fp,*fpp;
if((fp=fopen("d:\\yt\\input3.txt","r"))==NULL){
printf("file open error!\n");
exit(0);
}
if((fpp=fopen("d:\\yt\\output3.txt","w"))==NULL){
printf("file open error!\n");
exit(1);
}
char str[128];
int n=0;
while(!feof(fp)){
fscanf(fp,"%[^\n]",str);
n=strlen(str);
printf("%s",str);
fseek(fp,n,1);
}
fclose(fp);
fclose(fpp);
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -