📄 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);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -