Autor Beitrag
Xclusive
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 56


C#
BeitragVerfasst: Di 17.03.09 22:50 
So so sieht mein Code aus:

ausblenden C#-Quelltext
1:
2:
3:
 private void button1_Click(object sender, EventArgs e)
        {
            textBox13.Text = (int.Parse(textBox1.Text) * 2 + int.Parse(textBox2.Text) * 2 + int.Parse(textBox3.Text) * 2 + int.Parse(textBox7.Text) * 2 + int.Parse(textBox8.Text) * 2 + int.Parse(textBox9.Text) * 2 + int.Parse(textBox4.Text) + int.Parse(textBox5.Text) + int.Parse(textBox6.Text) + int.Parse(textBox11.Text) + int.Parse(textBox12.Text) + int.Parse(textBox10.Text)).ToString();



Jetzt will ich das es das Ergebniss durch /19 teil alles zusammen was rauskommt.

Danke im vorraus für hilfen.

mfg David


Ok danke an "Kha" :
Falls jmd. wissen will wie es funtzt:

ausblenden C#-Quelltext
1:
2:
3:
 private void button1_Click(object sender, EventArgs e)
        {
            textBox13.Text = ((int.Parse(textBox1.Text) * 2 + int.Parse(textBox2.Text) * 2 + int.Parse(textBox3.Text) * 2 + int.Parse(textBox7.Text) * 2 + int.Parse(textBox8.Text) * 2 + int.Parse(textBox9.Text) * 2 + int.Parse(textBox4.Text) + int.Parse(textBox5.Text) + int.Parse(textBox6.Text) + int.Parse(textBox11.Text) + int.Parse(textBox12.Text) + int.Parse(textBox10.Text))/18.0).ToString();
+

Danke^^

Moderiert von user profile iconChristian S.: Code- durch C#-Tags ersetzt
JüTho
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2021
Erhaltene Danke: 6

Win XP Prof
C# 2.0 (#D für NET 2.0, dazu Firebird); früher Delphi 5 und Delphi 2005 Pro
BeitragVerfasst: Mi 18.03.09 10:51 
Nanu, was ist hier passiert? Ich habe folgende Vermutungen:

1. Diese Frage ist eine Fortsetzung von QualiRechner. Ist es sinnvoll, dies als neue Frage zu stellen, wenn die alte dort nicht gelöst wurde?

2. Sowohl Frage als auch Antwort wurden per PN besprochen. Ist es sinnvoll, sich einzelne Hilfesteller wie mich und Kha (und vielleicht noch andere) herauszusuchen?

3. Du liest Deine Texte überhaupt nicht durch; sonst würdest Du den Fehler "/19" statt "/18", die seltsame Grammatik und die miserable Formatierung mit der überlangen Code-Zeile selbst erkennen. Willst Du uns die Hilfe nicht lieber erleichtern?

Jürgen