吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 7111|回复: 13
收起左侧

[其他转载] C#简单O泡果奶

[复制链接]
小白1324 发表于 2020-11-13 08:20

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Media;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace _66.随便乱玩
{
public partial class Form1 : Form
{

    public Form1()
    {
        InitializeComponent();
    }

    private void Form1_Load(object sender, EventArgs e)
    {
        SoundPlayer sp = new SoundPlayer();
        sp.SoundLocation = @"C:\Users\Administrator\Desktop\我爱学习\o泡果奶 1.wav";//路径这里放你自己(o泡)本地的路径,音频格式要wav格式
        sp.Play();
        int i = 0;
        MessageBox.Show("三年二班的李子明同学,你妈妈给你送o泡果奶来了!");
        MessageBox.Show("别点太快,不是死循环,点完就没歌听了");
        while (true)
        {
            i++;
            if (i == 0)
            {
                MessageBox.Show("给我O泡");
            }
            else if (i == 1)
            {
                MessageBox.Show("给我O泡");
            }
            else if (i == 2)
            {
                MessageBox.Show("o泡果奶哦哦哦");
            }
            else if (i == 3)
            {
                MessageBox.Show("我要o泡");
            }
            else if (i == 4)
            {
                MessageBox.Show("我要o泡");
            }
            else if (i == 5)
            {
                MessageBox.Show("o泡果奶要要要");
            }
            else if (i == 6)
            {
                MessageBox.Show("喝o泡果奶");
            }
            else if (i == 7)
            {
                MessageBox.Show("把清凉抱抱");
            }
            else if (i == 8)
            {
                MessageBox.Show("喝o泡果奶");
            }
            else if (i == 9)
            {
                MessageBox.Show("把好喝抱抱");
            }
            else if (i == 10)
            {
                MessageBox.Show("给我o泡");
            }
            else if (i == 11)
            {
                MessageBox.Show("给我o泡");
            }
            else if (i == 12)
            {
                MessageBox.Show("我要o泡");
            }
            else if (i == 13)
            {
                MessageBox.Show("o泡果奶我还要~~旺旺~");
            }
            else
            {
                MessageBox.Show("感谢收听由李子明同学赠送的O泡果奶一首");
                break;
            }

        }
        sp.Stop();

        }
    }
}

O泡果奶源码.txt

2.93 KB, 下载次数: 21, 下载积分: 吾爱币 -1 CB

免费评分

参与人数 1吾爱币 +3 热心值 +1 收起 理由
苏紫方璇 + 3 + 1 欢迎分析讨论交流,吾爱破解论坛有你更精彩!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

buaiwanyouxi 发表于 2020-11-13 14:27
完美运行!
[C#] 纯文本查看 复制代码
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Media;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
 
namespace 测试
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
 
        private void Form1_Load(object sender, EventArgs e)
        {
            SoundPlayer sp = new SoundPlayer();
            sp.SoundLocation = @"D:\Software\网易云音乐第三方端\o泡果奶 1.wav";//路径这里放你自己(o泡)本地的路径,音频格式要wav格式
            sp.Play();
            int i = 0;
            MessageBox.Show("三年二班的李子明同学,你妈妈给你送o泡果奶来了!");
            MessageBox.Show("别点太快,不是死循环,点完就没歌听了");
            while (true)
            {
                i++;
                if (i == 0)
                {
                    MessageBox.Show("给我O泡");
                }
                else if (i == 1)
                {
                    MessageBox.Show("给我O泡");
                }
                else if (i == 2)
                {
                    MessageBox.Show("o泡果奶哦哦哦");
                }
                else if (i == 3)
                {
                    MessageBox.Show("我要o泡");
                }
                else if (i == 4)
                {
                    MessageBox.Show("我要o泡");
                }
                else if (i == 5)
                {
                    MessageBox.Show("o泡果奶要要要");
                }
                else if (i == 6)
                {
                    MessageBox.Show("喝o泡果奶");
                }
                else if (i == 7)
                {
                    MessageBox.Show("把清凉抱抱");
                }
                else if (i == 8)
                {
                    MessageBox.Show("喝o泡果奶");
                }
                else if (i == 9)
                {
                    MessageBox.Show("把好喝抱抱");
                }
                else if (i == 10)
                {
                    MessageBox.Show("给我o泡");
                }
                else if (i == 11)
                {
                    MessageBox.Show("给我o泡");
                }
                else if (i == 12)
                {
                    MessageBox.Show("我要o泡");
                }
                else if (i == 13)
                {
                    MessageBox.Show("o泡果奶我还要~~旺旺~");
                }
                else
                {
                    MessageBox.Show("感谢收听由李子明同学赠送的O泡果奶一首");
                    break;
                }
 
            }
            sp.Stop();
        }
    }
     
}
lty0922 发表于 2020-11-13 11:27
chinaxhb 发表于 2020-11-13 11:32
SoundPlayer 的类都没有加入在源码里面让人怎么运行呀。:)顶一个分享的人吧。
liu8359 发表于 2020-11-13 14:13
wav文件让我们自己唱完录音?
buaiwanyouxi 发表于 2020-11-13 14:26
chinaxhb 发表于 2020-11-13 11:32
SoundPlayer 的类都没有加入在源码里面让人怎么运行呀。:)顶一个分享的人吧。

using System.Media;  
 楼主| 小白1324 发表于 2020-11-14 12:20
liu8359 发表于 2020-11-13 14:13
wav文件让我们自己唱完录音?

网上一大堆
pincers 发表于 2020-11-14 20:18
给我o泡                        
hbchaoyu 发表于 2020-11-14 22:25
路过,看起来比较简单。
zczcx 发表于 2020-11-15 12:05
是那个会播放声音那个吗
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2025-5-30 03:38

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表