My first C # project
It is only a small mm-inch converter, but each one starts small.
The source code: using
system;
using System.Collections.Generic;
using System.Text;;
using System.Linq
namespace converter {
class Program {
static void Main (string [] args) {
strEingabe string = "";
double dblRueckgabe = 0;
strRueckgabe string = "";
strInFormatShort string = "";
strOutFormatShort string = "";
strInFormat string = "" ;
strOutFormat string = "";
Console.WriteLine;
Console.WriteLine ("What do you want to calculate?) (1 inch to MM);
Console.WriteLine (" 2: MM to Inch "); strEingabe
= Console.ReadLine ();
switch (strEingabe)
{case "1":
zolltomm duty zolltomm = new ();
strEingabe = "";
strInFormatShort = "mm";
strInFormat = "mm";
strOutFormatShort = "\\" ";
strOutFormat =" inch ";
Console.Write (" Please give her a {0} value : ", strOutFormat);
zoll.dblEingabe = Convert.ToDouble (Console.ReadLine ());
dblRueckgabe zoll.GetMM = ();
strRueckgabe = zoll.dblEingabe strOutFormatShort + + "are" + + dblRueckgabe strInFormatShort;
break;
case "2":
mmtozoll mmtozoll mm = new ();
strEingabe = "";
strInFormatShort = "\\" ";
strInFormat =" inch ";
strOutFormatShort = "mm";
strOutFormat = "Millimeter";
Console.Write("Bitte geben Sie ihren {0}-Wert ein: ", strOutFormat);
mm.dblEingabe = Convert.ToDouble(Console.ReadLine());
dblRueckgabe = mm.GetMM();
strRueckgabe = mm.dblEingabe + strOutFormatShort + " sind " + dblRueckgabe + strInFormatShort;
break;
default:
strRueckgabe = strEingabe+" ist eine ungültige Eingabe";
break;
}
Console.Write("{0}", strRueckgabe);
Console.ReadLine();
}
}
public class zolltomm
{
public double dblZollToMM = 25.40005;
public double dblZoll=0;
public double dblMM=0;
public double dblEingabe = 0;
public double dblRueckgabe = 0;
public double GetMM ()
{
dblZoll = dblEingabe;
dblMM = dblZollToMM * dblZoll;
dblRueckgabe = dblMM;
return dblRueckgabe;
}
}
public class mmtozoll
{
public double dblZollToMM = 25.40005;
public double dblZoll = 0;
public double dblMM = 0;
public double dblEingabe = 0;
public double dblRueckgabe = 0;
public double GetMM () {
dblMM = dblEingabe;
dblZoll = dblMM / dblZollToMM;
dblRueckgabe = dblZoll; return
dblRueckgabe;
}}
}
The EXE: http://lucky.fam-jucker.com/index.php/downloads/file/14-mm-zoll -umrechner.html
Monday, November 2, 2009
Tuesday, September 8, 2009
Cape Cod Bracelet What Is The Story Behind Them
Who's the Boss?
The new boss has the impression that its employees do not respect him enough. To make all clear who is the master of the house, he hangs a sign on his office door: "I am the boss."
When he comes back from the lunch break is, instead of the shield a note on the door:
"Your wife called you want to get back their shield
-------------.. -------------------------------------
The new boss has the impression that its employees do not respect him enough. To make all clear who is the master of the house, he hangs a sign on his office door: "I am the boss."
When he comes back from the lunch break is, instead of the shield a note on the door:
"Your wife called you want to get back their shield
-------------.. -------------------------------------
Sunday, September 6, 2009
Pokemon Leaf Green When Does Pikachu Learn
Only 2 days until the wedding!
Schön, dass Ihr kommt, liebe Swanni und Thomas!!!
Schön, dass Ihr kommt, liebe Swanni und Thomas!!!
Friday, September 4, 2009
Putting Refrigerator In A Closet
Subscribe to:
Posts (Atom)