📄 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 + -