📄 otheroperation.cpp
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -