notice.cpp

来自「图书馆管理系统 包括界面、书籍管理、会员管理等内容」· C++ 代码 · 共 27 行

CPP
27
字号
#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 + =
减小字号Ctrl + -
显示快捷键?