?? output.c
字號:
/*本模塊用于負責接收輸入請求*/
//聲明該變量在其他文件中已經定義
#include<stdio.h>
extern char ch;
void output(void)
{
long int i;
FILE * cfPtr=NULL;
if( (cfPtr=fopen("data.txt","w"))==NULL)
printf("can't open file\n");
else
while(1){
for(i=1;i<=22222222;i++);
fputc(ch,cfPtr); //寫文件
//putchar(ch);
fflush(cfPtr);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -