日期:2014-05-17 浏览次数:20812 次
class Program
{
static void Main(string[] args)
{
int testTimes;
Console.WriteLine("输入警察一共找了他多少次?");
try
{
testTimes = int.Parse(Console.ReadLine());
}
catch
{
Console.WriteLine("输入的不是整数");
return;
}
int findTimesInA = 0;
int findTimesInB = 0;
int findTimesInC = 0;
for (int i = 0; i < testTimes; i++)
{
YeShen yeshen = new YeShen();
if (yeshen.isDrink)//如果喝酒了
{
if (yeshen.pub == Pub.A)
{
findTimesInA++;