LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 660|回复: 0

谁能帮我看看这小段代码,很简单的,但不知为什么一执行就全成乱码了

[复制链接]
发表于 2003-12-2 16:26:28 | 显示全部楼层 |阅读模式
#include <stdio.h>
main(int argc,char *argv[])
{
  FILE *fp;
  int c;
  fp=fopen(*argv,"r");
  while((c=getc(fp))!=EOF)
  putc(c,stdout);
  fclose(fp);
  return 0;
}
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表