1、检查你打开的方式;2、看一下你的字符是否正确结尾了,也就是说字符串末尾是否是\0,如果不是可以手动添加。我以前做C语言课程设计时经常遇到这个问题,而且是第二个地原因大一点,因为如果是二进制文件有时候也是可以正常用记事本读出来的。
这个肯定不会有错……//#include "stdafx.h"//vc++6.0加上这一行.include "stdio.h"include "time.h"include "stdlib.h"void main(void){ int x[60][80],i,j;FILE *fp=fopen("out.txt","wb");if((fp=fopen("out.txt","w"))==NULL){ printf("Open the text failure...\n...