Пример #1
0
void displayInfo()
{
	int choice;
	menuDisplayInfo();
	printf("请输入你的选择: ");
	scanf("%d", &choice);
	switch (choice)
	{
	case 1:
		displayFormer();   //显示原来的顺序
		system("pause");
		//system("cls");
		break;
	case 2:
		displaySell();
		//system("pause");
		system("cls");
		break;
	case 3:
		displayMoney();
		system("pause");
		//system("cls");
		break;
	case 4:
		displayExpirationData();
		system("pause");
		//system("cls");
		break;
	case 0:
		break;
	default:
		printf("输入有误!");
		break;
	}
}
Пример #2
0
/* Wrapper function that will call the other four display functions */
void HUD::displayResources(OutputResources& o)
{
	displayWood(o);
	displayBrick(o);
	displayMoney(o);
	displayFood(o);
}