Geri git   Programlama ve Elektronik > Programlama Yazılım > C - C++ - C# - Visual C++ - Visual C# > Örnek Kodlar
Kayıt ol Yardım Community Bugünki Mesajlar Arama

Cevapla
 
Seçenekler Stil
Alt 17. May 2008, 03:41 AM   #1 (permalink)
Amatör
 
McDroPp - ait Kullanıcı Resmi (Avatar)
 
Üyelik tarihi: Mar 2008
Nerden: C# SQl Server 2008 İnformation Technology's Server Secretary And Aspx To lınk Tecnolojıes,Mybb
Mesajlar: 51
Standart Doğru Denklemi

Doğru Denklemi
--------------------------------------------------------------------------------
Matematikçiler için örnekk
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace Doğru_Denklemi
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.ListBox listBox1;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;

public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();

//
// TODO: Add any constructor code after InitializeComponent call
//
}

/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}

#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.textBox3 = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.listBox1 = new System.Windows.Forms.ListBox();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Comic Sans MS" 14.25F System.Drawing.FontStyle.Bold System.Drawing.GraphicsUnit.Point ((byte)(162)));
this.label1.ForeColor = System.Drawing.Color.Firebrick;
this.label1.Location = new System.Drawing.Point(88 16);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(114 27);
this.label1.TabIndex = 0;
this.label1.Text = "ax+by+c=0";
//
// textBox1
//
this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox1.Location = new System.Drawing.Point(32 88);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(40 20);
this.textBox1.TabIndex = 1;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Comic Sans MS" 12F System.Drawing.FontStyle.Bold System.Drawing.GraphicsUnit.Point ((byte)(162)));
this.label2.ForeColor = System.Drawing.Color.Firebrick;
this.label2.Location = new System.Drawing.Point(72 84);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(43 23);
this.label2.TabIndex = 0;
this.label2.Text = "x + ";
//
// textBox2
//
this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox2.Location = new System.Drawing.Point(104 88);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(40 20);
this.textBox2.TabIndex = 3;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Comic Sans MS" 12F System.Drawing.FontStyle.Bold System.Drawing.GraphicsUnit.Point ((byte)(162)));
this.label3.ForeColor = System.Drawing.Color.Firebrick;
this.label3.Location = new System.Drawing.Point(149 84);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(43 23);
this.label3.TabIndex = 2;
this.label3.Text = "y + ";
//
// textBox3
//
this.textBox3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox3.Location = new System.Drawing.Point(181 88);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(40 20);
this.textBox3.TabIndex = 4;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Comic Sans MS" 12F System.Drawing.FontStyle.Bold System.Drawing.GraphicsUnit.Point ((byte)(162)));
this.label4.ForeColor = System.Drawing.Color.Firebrick;
this.label4.Location = new System.Drawing.Point(222 85);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(44 23);
this.label4.TabIndex = 5;
this.label4.Text = " = 0";
//
// button1
//
this.button1.Location = new System.Drawing.Point(32 144);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(80 96);
this.button1.TabIndex = 6;
this.button1.Text = "Listele";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// listBox1
//
this.listBox1.Location = new System.Drawing.Point(128 144);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(120 95);
this.listBox1.TabIndex = 7;
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5 13);
this.BackColor = System.Drawing.Color.LightSteelBlue;
this.ClientSize = new System.Drawing.Size(292 266);
this.Controls.Add(this.listBox1);
this.Controls.Add(this.button1);
this.Controls.Add(this.label4);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.label3);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label1);
this.Controls.Add(this.label2);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();

}
#endregion

/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run(new Form1());
}

private void button1_Click(object sender System.EventArgs e)
{
if (textBox1.Text=="" || textBox2.Text=="" ||
textBox3.Text=="")return;
listBox1.Items.Clear();
double abcx1y1;
a=Convert.ToDouble(textBox1.Text);
b=Convert.ToDouble(textBox2.Text);
c=Convert.ToDouble(textBox3.Text);
x1=1;
while(x1<100)
{
y1=1;
while(y1<100)
{
if(a*x1+b*y1+c==0)
listBox1.Items.Add(Convert.ToString(x1)+" ve "+Convert.ToString(y1));
y1=y1+1;
}
x1=x1+1;
}


}

private void Form1_Load(object sender EventArgs e)
{

}
}
}
__________________
بِسْــــــــــــــــــــــمِ اﷲِارَّحْمَنِ ارَّحِيم

-------------------------------------------------

Bu Soysuzlar Bu Vatansızlar Sarsada Yurdumu Ben Yaratan'dan Alırım Asil Kanı ve Gücü.
-------------------------------------------------
McDroPp isimli Üye şimdilik offline konumundadır   Alıntı ile Cevapla
Cevapla


Yetkileriniz
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-KodlarıKapalı
Trackbacks are Kapalı
Pingbacks are Kapalı
Refbacks are Kapalı


Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
Doğru Akım Devre Analizi - Direnç Ohm Kanunu İş Güç Enerji Kitabı (Harun TOPAK - Mersin Üniversitesi) PIONEERNADIR Elektronik e-Book (pdf-doc-chm-html vb.) 2 11. December 2014 11:38 AM
İleri saat uygulamasında sona doğru Nick RSS Haberleri 0 7. November 2008 01:57 PM