|
•Отв: ну я услышал. - guest, 18.05.2007 11:43:48 |
|
|
скачал исходники)) вот думаю: ктонить из вас слышал что такое C#? может ван на него переключится? для этого настоятельно рекомендую Visual Studio 2005. там писать почти не надо- постоянно подсказки выскакивают. вот для примера кусок кода:
private void InitializeComponent() { this.button0 = new System.Windows.Forms.Button(); this.button0.Location = new System.Drawing.Point(17, 328); this.button0.Name = button0; this.button0.Size = new System.Drawing.Size(30, 28); this.button0.TabIndex = 0; this.button0.Text = 0; this.button0.UseVisualStyleBackColor = true; this.button0.Click += new System.EventHandler(this.button0_Click); } private void button0_Click(object sender, EventArgs e) { if (result.Length < 13) { result += 0; refreshresult(0); } } private int[] dectobin(string st) { ulong chislo = Convert.ToUInt64(st); int[] ch = new int[30]; ulong g; g = chislo; ulong temp; for (int i = 29; i >= 0; i--) { if ((chislo < Convert.ToUInt64(Math.Pow(2, i + 1))) & (chislo >= Convert.ToUInt64(Math.Pow(2, i)))) { g = g - Convert.ToUInt64(Math.Pow(2, i)); ch[29 - i] = 1; } else { ch[29 - i] = 0; } temp = Convert.ToUInt64( ch[29 - i]) * (Convert.ToUInt64(Math.Pow(2, i))); chislo = chislo - temp; } string stout = "; for (int i = 0; i < 30; i++) { stout += ch; } return ch; }
ну вот собсно можете сравнить похожесть языков... |
|
| |