⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addressitem.h

📁 四种排序算法的C++语言实现
💻 H
字号:
// FuncSet.h: interface for the FuncSet class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FUNCSET_H__E5C627AC_9474_41E5_AC80_5348CE1D26F2__INCLUDED_)
#define AFX_FUNCSET_H__E5C627AC_9474_41E5_AC80_5348CE1D26F2__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include   "stdio.h"       //I/O函数  
#include   "stdlib.h"   //标准库函数  
#include   "string.h"//字符串函数   
#include   "ctype.h"   //字符操作函数  
#include   "iostream.h"

#define   M   50     //定义常数表示记录数 

struct AddressItem  //定义数据结构   
{   
     char name[10+1];     //姓名   
     char tele[10+1];     //电话
	 char add[20+1];      //地址
	 char birthdate[20+1];  //生日
	 char ID[3+1];            //编号
}address[1000]; 

class FuncSet  
{
public:
	FuncSet();
	virtual ~FuncSet();
 	int enter(AddressItem * t); 
	//输入记录   
	void show(AddressItem * t,int n);
	//显示记录   
	void search(AddressItem * t,int n);  
	//按姓名查找显示记录   
	int del(AddressItem * t,int n);   
	//删除记录   
	int add(AddressItem * t,int n);   
	//插入记录   
	void save(AddressItem * t,int n);   
	//记录保存为文件   
	int load(AddressItem * t);    
	//从文件中读记录   
	void display(AddressItem * t);  
	//按序号查找显示记录  
	void qseek(AddressItem * t,int n);  
	//快速查找记录   
	int find(AddressItem * t,int n,char *s);   
	//查找函数 
	int menu_select();     
	//主菜单函数   


};

#endif // !defined(AFX_FUNCSET_H__E5C627AC_9474_41E5_AC80_5348CE1D26F2__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -