天空是蓝色的

做好软件为中国 #gcc -c helloworld.c -o helloworld.o //编译目标文件 #gcc helloworld.o -o helloworld //编译成可执行exe #helloworld //运行exe
数据加载中……
C输出文件函数
#include<stdio.h>
int main()
{
 FILE *fp;
  fp=fopen("fileout.txt","w+");
  fprintf(fp,"Helloworld");
  fputc('\n',fp);
  fclose(fp);
  return 0;
}

posted on 2006-02-13 17:16 bluesky 阅读(1003) 评论(0)  编辑  收藏 所属分类: C/C++


只有注册用户登录后才能发表评论。


网站导航: