otheroperation.cpp
来自「基于VC的小型数据库管理程序源代码」· C++ 代码 · 共 58 行
CPP
58 行
#define MAIN_GLOBALS
#include "include.h"
extern Inflinklist *head;
//-------------------------------------------------
//--init information notice
//-------------------------------------------------
extern Inflinklist *head;
void Infnotice(void)
{
printf("\n****************************************************************\n");
printf("PERSONNAL INFORMATION MANAGE OPERATION:\n");
printf("select the operation:\n");
printf(" inf input: press key i/I;\t inf delet: press key d/D\n");
printf(" inf search: press key s/S;\t exit program: press key x/X\n ");
printf("......................For other keys invalid!!..................\n");
printf("operation: ");
}
//------------------------------------------------
//--释放内存
//------------------------------------------------
void freelinklist(Inflinklist * ps)
{
Inflinklist *p;
while(head!=NULL)
{
p=head;
head=p->next;
free(p);
}
}
//----------------------------------------------------------
//--weathercontinuenotice(标记是否继续进行操作)
//----------------------------------------------------------
char GetContinueNote(void)
{
int cntu;
loop: cntu=getchar();
while(getchar()!=10) //输入的不止是一个字符
{
fflush(stdin);
printf(" ERROR!输入字符太多!请输入单个字符!\t opreation:");
goto loop;
}
while(cntu!='Y' && cntu!='y' && cntu!='N' && cntu!='n')
{
fflush(stdin);
printf("\nerror select! Press Y/y or N/n:\t");
goto loop;
}
return (char)cntu;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?