bowling.cpp
来自「提供计算保龄球得分的算法」· C++ 代码 · 共 31 行
CPP
31 行
// 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 + =
减小字号Ctrl + -
显示快捷键?