C#
以C#为主的编程技术
心之所向-
生性简单,头脑发烧,典型程序猿
展开
-
c#窗体随机点名软件
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace 随机抽人{ publi...原创 2018-05-15 22:14:04 · 8141 阅读 · 2 评论 -
c#控制台万年历
int i, year, month, week, days = 0, day=0; do { days = 0; Console.WriteLine("请输入年份:"); year = int.Parse(Console.ReadL...原创 2018-05-15 22:07:06 · 1220 阅读 · 5 评论 -
c#窗体背景音乐的设置插入
using System.Media;//头文件 string path = @"F:\VS 窗体应用程序软件\困难症\mci\长安忆.wav"; //歌曲文件的路径 歌曲一定要是wav格式 SoundPlayer bgm = new SoundPlayer(path);bgm.Play(); //播放bgm.stop();//停止...原创 2018-05-15 21:54:55 · 8112 阅读 · 5 评论 -
计时器,能显示倒计时
int startTime = 5; //开始倒计时 for (int i = startTime; i > 0; i--) { Console.WriteLine(i); // 线程休眠1秒 Thread.Sleep(1000); ...原创 2018-05-15 22:08:53 · 305 阅读 · 0 评论 -
取字符串随机字符,做随机软件
String[] present = new String[7]; for (int i = 0; i < 7; i++) { present[i] = Console.ReadLine(); } Random r = new Random(); str...原创 2018-05-15 22:09:45 · 198 阅读 · 0 评论