第一次写博客,感想连篇,代码见证一切

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _001.text
{
    class Program
    {
        static void Main(string[] args)
        {
            int count = 0;
            Console.WriteLine("2017年8月12日第一次登陆月球,请说说你的感想!");
            while (true)
            {
                string str = Console.ReadLine();
                switch(str)
                {
                    case "我没什么感想":
                    Console.WriteLine("您真是才不外露,无声胜有声");
                    break;
                    case "呵呵":
                    Console.WriteLine("神秘的笑声中究竟有什么秘密");
                    break;
                    case "我大码农也有今天呀":
                    Console.WriteLine("。。。。。");
                    break;
                    default:
                        Random(count);
                        count++;
                    break;
                    case "不要打扰我睡觉":
                    return;
                }
            }
        }
        public static void Random(int count)
        {
            string[] random = new string[] { "没听见,您说得什么", "沉默是金", "别瞎掰掰了赶紧说,现在还能饶过你" };
            Random Ra = new Random();
            int index = Ra.Next(0, random.Length - 1);
            if (count > 0)
            {
                Console.WriteLine(random[2]);
            }
            else
            {
                    Console.WriteLine(random[index]);
            }
        }
    }
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值