文件名称:hanoicx
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 67kb
- 下载次数:
- 0次
- 提 供 者:
- zlqi*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
汉诺塔源码C#
nt width = (int)((panelHanoi.Width / 3 - offset)*((float)hanoiData.diskList[key][j]/hanoiData.diskCount))+offset
int left=(int)(x-width/2)
int height=20
int top=panelHanoi.Height-(hanoiData.diskList[key].Count-j)*height
e.Graphics.FillRectangle(new SolidBrush(Color.Blue), new Rectangle(left, top, width, height-2))
e.Graphics.DrawString(hanoiData.diskList[key][j].ToString(), this.Font, new SolidBrush(Color.White), left, top)
}
}-nt width = (int)((panelHanoi.Width/3- offset)*((float)hanoiData.diskList[key][j]/hanoiData.diskCount))+offset
int left=(int)(x-width/2)
int height=20
int top=panelHanoi.Height-(hanoiData.diskList[key].Count-j)*height
e.Graphics.FillRectangle(new SolidBrush(Color.Blue), new Rectangle(left, top, width, height-2))
e.Graphics.DrawString(hanoiData.diskList[key][j].ToString(), this.Font, new SolidBrush(Color.White), left, top)
}
}
nt width = (int)((panelHanoi.Width / 3 - offset)*((float)hanoiData.diskList[key][j]/hanoiData.diskCount))+offset
int left=(int)(x-width/2)
int height=20
int top=panelHanoi.Height-(hanoiData.diskList[key].Count-j)*height
e.Graphics.FillRectangle(new SolidBrush(Color.Blue), new Rectangle(left, top, width, height-2))
e.Graphics.DrawString(hanoiData.diskList[key][j].ToString(), this.Font, new SolidBrush(Color.White), left, top)
}
}-nt width = (int)((panelHanoi.Width/3- offset)*((float)hanoiData.diskList[key][j]/hanoiData.diskCount))+offset
int left=(int)(x-width/2)
int height=20
int top=panelHanoi.Height-(hanoiData.diskList[key].Count-j)*height
e.Graphics.FillRectangle(new SolidBrush(Color.Blue), new Rectangle(left, top, width, height-2))
e.Graphics.DrawString(hanoiData.diskList[key][j].ToString(), this.Font, new SolidBrush(Color.White), left, top)
}
}
(系统自动生成,下载前可以参看下载内容)
下载文件列表
汉诺塔源码\Backup\Form1.cs
..........\......\Form1.Designer.cs
..........\......\Form1.resx
..........\......\Hanoi.csproj
..........\......\Hanoi.sln
..........\......\Hanoi.suo
..........\......\HanoiData.cs
..........\......\Program.cs
..........\......\...perties\AssemblyInfo.cs
..........\......\..........\Resources.Designer.cs
..........\......\..........\Resources.resx
..........\......\..........\Settings.Designer.cs
..........\......\..........\Settings.settings
..........\bin\Debug\Hanoi.exe
..........\...\.....\Hanoi.pdb
..........\...\.....\Hanoi.vshost.exe
..........\...\.....\Hanoi.vshost.exe.manifest
..........\Form1.cs
..........\Form1.Designer.cs
..........\Form1.resx
..........\Hanoi.csproj
..........\Hanoi.sln
..........\Hanoi.suo
..........\HanoiData.cs
..........\obj\Debug\Hanoi.csproj.FileListAbsolute.txt
..........\...\.....\Hanoi.csproj.GenerateResource.Cache
..........\...\.....\Hanoi.exe
..........\...\.....\Hanoi.Form1.resources
..........\...\.....\Hanoi.pdb
..........\...\.....\Hanoi.Properties.Resources.resources
..........\...\.....\TempPE\Properties.Resources.Designer.cs.dll
..........\...\Hanoi.csproj.FileListAbsolute.txt
..........\Program.cs
..........\...perties\AssemblyInfo.cs
..........\..........\Resources.Designer.cs
..........\..........\Resources.resx
..........\..........\Settings.Designer.cs
..........\..........\Settings.settings
..........\_UpgradeReport_Files\Thumbs.db
..........\....................\UpgradeReport.css
..........\....................\UpgradeReport.xslt
..........\....................\UpgradeReport_Minus.gif
..........\....................\UpgradeReport_Plus.gif
..........\obj\Debug\TempPE
..........\Backup\Properties
..........\bin\Debug
..........\obj\Debug
..........\Backup
..........\bin
..........\obj
..........\Properties
..........\_UpgradeReport_Files
汉诺塔源码
..........\......\Form1.Designer.cs
..........\......\Form1.resx
..........\......\Hanoi.csproj
..........\......\Hanoi.sln
..........\......\Hanoi.suo
..........\......\HanoiData.cs
..........\......\Program.cs
..........\......\...perties\AssemblyInfo.cs
..........\......\..........\Resources.Designer.cs
..........\......\..........\Resources.resx
..........\......\..........\Settings.Designer.cs
..........\......\..........\Settings.settings
..........\bin\Debug\Hanoi.exe
..........\...\.....\Hanoi.pdb
..........\...\.....\Hanoi.vshost.exe
..........\...\.....\Hanoi.vshost.exe.manifest
..........\Form1.cs
..........\Form1.Designer.cs
..........\Form1.resx
..........\Hanoi.csproj
..........\Hanoi.sln
..........\Hanoi.suo
..........\HanoiData.cs
..........\obj\Debug\Hanoi.csproj.FileListAbsolute.txt
..........\...\.....\Hanoi.csproj.GenerateResource.Cache
..........\...\.....\Hanoi.exe
..........\...\.....\Hanoi.Form1.resources
..........\...\.....\Hanoi.pdb
..........\...\.....\Hanoi.Properties.Resources.resources
..........\...\.....\TempPE\Properties.Resources.Designer.cs.dll
..........\...\Hanoi.csproj.FileListAbsolute.txt
..........\Program.cs
..........\...perties\AssemblyInfo.cs
..........\..........\Resources.Designer.cs
..........\..........\Resources.resx
..........\..........\Settings.Designer.cs
..........\..........\Settings.settings
..........\_UpgradeReport_Files\Thumbs.db
..........\....................\UpgradeReport.css
..........\....................\UpgradeReport.xslt
..........\....................\UpgradeReport_Minus.gif
..........\....................\UpgradeReport_Plus.gif
..........\obj\Debug\TempPE
..........\Backup\Properties
..........\bin\Debug
..........\obj\Debug
..........\Backup
..........\bin
..........\obj
..........\Properties
..........\_UpgradeReport_Files
汉诺塔源码