- 博客(4)
- 收藏
- 关注
原创 控制台输出右三角形
<br />using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace RightTriangle { class Program { static void Main(string[] args) { string result = showTriangle(6);
2010-06-15 11:09:00 375
原创 定义有参数委托启动线程(读奇数,偶数)
<br />using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace ParameterizedThreadStartDemo { class Program { static void Main(string[] args) {
2010-06-14 20:06:00 307
原创 控制台创建线程
ThreadStart ts = new ThreadStart(count); Thread td = new Thread(ts); td.Name = "子线程运行"; td.Start(); Thread.CurrentThread.Name = "现在执行的主线程"; count(); Console.ReadK
2010-06-14 19:13:00 471
原创 杨辉三角
<br />for (int line = 1; line <= 5; line++) { for (int count = 1; count <= line; count++) { Console.Write("*"); } Console.WriteLine(); } Console.ReadKey(); <br /> <br />运行效果:<br />
2010-06-14 18:47:00 153
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人