?? notice.cpp
字號:
#include"liba.h"
void notice()
{
FILE *fn;
char notice[1000];
window(1,1,80,2);
textbackground(LIGHTGRAY);
clrscr();
textcolor(YELLOW);
gotoxy(30,1);
cprintf("Publish Notice");
window(1,2,80,25);
textcolor(WHITE);
textbackground(BLUE);
clrscr();
fn=fopen("E:\\cpp\\notice.txt","wt+");
printf("please input the notice:\n ");
fflush(stdin);
gets(notice);
fwrite(notice,strlen(notice)+1,1,fn);
fclose(fn);
printf("\n\n");
textcolor(RED);
cprintf("press any key to return...");
getch();
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -