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

📄 showallname.cpp

📁 家谱用于记录某家族历代家族成员的情况与关系。现编制一个家谱资料管理软件
💻 CPP
字号:
#include "DefineStruct.h"
void ShowAllName(family * member,int total)
{
	int i;

	for(i=1;i<=total;i++)
	{
		cout<<member[i].name<<"\t";

		if(i%3==0) cout<<endl;
	}

	return ;
}

void ShowRelation(family * member,int total)
{
a:	cout<<"家族成员列表\n";

	ShowAllName(member,total);

	cout<<"\n\n请输入需要查找直属关系的成员姓名:";

	char name[10];

	cin>>name;

	int LID=FindName(name,member,total);

	if(LID==0)
	{
		cout<<"*********\n"<<"没有此人"<<"\n*********\n";
		
		goto a;
	}
	ShowInRelation(LID,member,total);

	cout<<endl<<endl;
}

⌨️ 快捷键说明

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