addressbook.h

来自「一个小的电话簿程序」· C头文件 代码 · 共 41 行

H
41
字号
// AddressBook.h: interface for the CAddressBook class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ADDRESSBOOK_H__03132834_FEB6_4740_A028_917B80B46952__INCLUDED_)
#define AFX_ADDRESSBOOK_H__03132834_FEB6_4740_A028_917B80B46952__INCLUDED_

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

#include <string>

using namespace std;

struct information {
	string name;
	string sex;
	int age;
	string birthday;
	string address;
	string email;
	string telephone;
	string mobile;
	string memo;
};

class CAddressBook  
{
public:
	CAddressBook();
	virtual ~CAddressBook();

	void inputInformation();
	void displayFile(char* fileName);
	void printInformationToFile(information info, char* pathName);

};

#endif // !defined(AFX_ADDRESSBOOK_H__03132834_FEB6_4740_A028_917B80B46952__INCLUDED_)

⌨️ 快捷键说明

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