資源簡(jiǎn)介
C# 數(shù)據(jù)排序 示例代碼
代碼片段和文件信息
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?Sort2
{
????public?partial?class?Form1?:?Form
????{
????????int[]?num?=?new?int[10];
????????int?i=0;
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????
????????private?void?textBox1_KeyPress(object?sender?KeyPressEventArgs?e)
????????{
????????????label2.Text?=?“你輸入的數(shù)字序列為:\n“;
????????????if?((int)e.KeyChar==?13?)???????????????????//判斷是否按了Enter鍵
????????????{
????????????????if?(i?10)
????????????????{
????????????????????try
????????????????????{
????????????????????????num[i]?=?int.Parse(textBox1.Text);
????????????????????}
?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????目錄???????????0??2015-04-21?20:42??Sort2\
?????目錄???????????0??2015-04-21?21:33??Sort2\Sort2\
?????文件????????3755??2015-04-21?21:27??Sort2\Sort2\Form1.Designer.cs
?????文件????????2022??2015-04-21?21:33??Sort2\Sort2\Form1.cs
?????文件????????5814??2015-04-21?21:27??Sort2\Sort2\Form1.resx
?????文件?????????486??2015-04-21?20:42??Sort2\Sort2\Program.cs
?????目錄???????????0??2015-04-21?20:42??Sort2\Sort2\Properties\
?????文件????????1360??2015-04-21?20:42??Sort2\Sort2\Properties\AssemblyInfo.cs
?????文件????????2860??2015-04-21?20:42??Sort2\Sort2\Properties\Resources.Designer.cs
?????文件????????5612??2015-04-21?20:42??Sort2\Sort2\Properties\Resources.resx
?????文件????????1090??2015-04-21?20:42??Sort2\Sort2\Properties\Settings.Designer.cs
?????文件?????????249??2015-04-21?20:42??Sort2\Sort2\Properties\Settings.settings
?????文件????????3756??2015-04-21?21:00??Sort2\Sort2\Sort2.csproj
?????目錄???????????0??2015-04-21?20:42??Sort2\Sort2\bin\
?????目錄???????????0??2015-04-21?21:04??Sort2\Sort2\bin\Debug\
?????文件????????9216??2015-04-21?21:28??Sort2\Sort2\bin\Debug\Sort2.exe
?????文件???????24064??2015-04-21?21:28??Sort2\Sort2\bin\Debug\Sort2.pdb
?????文件???????14328??2015-04-21?21:29??Sort2\Sort2\bin\Debug\Sort2.vshost.exe
?????文件?????????490??2007-07-21?01:33??Sort2\Sort2\bin\Debug\Sort2.vshost.exe.manifest
?????目錄???????????0??2015-04-21?20:42??Sort2\Sort2\obj\
?????目錄???????????0??2015-04-21?21:28??Sort2\Sort2\obj\Debug\
?????文件?????????180??2015-04-21?21:27??Sort2\Sort2\obj\Debug\Sort2.Form1.resources
?????文件?????????180??2015-04-21?21:00??Sort2\Sort2\obj\Debug\Sort2.Properties.Resources.resources
?????文件?????????438??2015-04-21?21:29??Sort2\Sort2\obj\Debug\Sort2.csproj.FileListAbsolute.txt
?????文件?????????847??2015-04-21?21:27??Sort2\Sort2\obj\Debug\Sort2.csproj.GenerateResource.Cache
?????文件????????9216??2015-04-21?21:28??Sort2\Sort2\obj\Debug\Sort2.exe
?????文件???????24064??2015-04-21?21:28??Sort2\Sort2\obj\Debug\Sort2.pdb
?????目錄???????????0??2015-04-22?22:49??Sort2\Sort2\obj\Debug\TempPE\
?????文件?????????905??2015-04-21?20:42??Sort2\Sort2.sln
?????文件???????13824??2015-04-21?21:34??Sort2\Sort2.suo
評(píng)論
共有 條評(píng)論