轉到磁盤文件

#include <stdio.h> int main() { FILE *fp; char ch; fp=fopen("demo.txt","w"); if(fp==NULL) { printf("failure to open demo.txt!\n"); exit(0); } ch=getchar(); while (ch!='\n') { fputc(
相關文章
相關標籤/搜索