求纠错,vc6.0总是出错

[复制链接]
查看11 | 回复4 | 2011-12-8 20:46:36 | 显示全部楼层 |阅读模式
4个问题,具体请看注释:#include "stdio.h"void main(){FILE *fp1,*fp2;if((fp1=fopen("d:\\stu1.txt","rb"))==NULL){printf("file can not open!\n");
return;}if((fp2=fopen("d:\\stua.txt","w"))==NULL){printf("file can not open!\n");
return;}char s1[8];char s2[2];
char s3[20];char s4[...
回复

使用道具 举报

千问 | 2011-12-8 20:46:36 | 显示全部楼层
#include "stdio.h"void main(){FILE *fp1,*fp2;if((fp1=fopen("d:\\stu1.txt","rb"))==NULL){printf("file can not open!\n");
return;}if((fp2=fopen("d:\\stua...
回复

使用道具 举报

千问 | 2011-12-8 20:46:36 | 显示全部楼层
#include "stdio.h"void main(){FILE *fp1,*fp2;if((fp1=fopen("d:\\stu1.txt","rb"))==NULL){printf("file can not open!\n");
return;}if((fp2=fopen("d:\\stua...
回复

使用道具 举报

千问 | 2011-12-8 20:46:36 | 显示全部楼层
什么错?贴点error上来..看你代码,有中文,选utf-8编码没?...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行