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

📄 bowling.cpp

📁 提供计算保龄球得分的算法
💻 CPP
字号:
// bowling.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "Bowling1.h"
#include "iostream.h"

int main(int argc, char* argv[])
{
	CBowling g_Bowling;
	g_Bowling.INitArray();

	for(int n=0;n<=9;n++)
	{
		g_Bowling.InputNum(n);
   		g_Bowling.GetGrade();
		g_Bowling.GetAll();
		g_Bowling.Output();
	}

	if((g_Bowling.GetiFlag(9) == 1) || (g_Bowling.GetiFlag(9) == 2))//十轮和10处理
	{
		g_Bowling.InputNum(10);
		g_Bowling.GetGrade();
		g_Bowling.GetAll();
		g_Bowling.Output();
	}
	return 0;
}

⌨️ 快捷键说明

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