Projektdateien hinzufügen.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.14.36408.4 d17.14
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HalloWelt", "HalloWelt\HalloWelt.csproj", "{92DF37D5-F682-433E-A8FC-F9A3FB713962}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{92DF37D5-F682-433E-A8FC-F9A3FB713962}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{92DF37D5-F682-433E-A8FC-F9A3FB713962}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{92DF37D5-F682-433E-A8FC-F9A3FB713962}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{92DF37D5-F682-433E-A8FC-F9A3FB713962}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {32FDBAAF-B432-4A81-A78A-E0B80AEF3DE4}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,175 @@
|
||||
// See https://aka.ms/new-console-template for more information
|
||||
|
||||
/* //Konsole beschreiben
|
||||
Console.WriteLine("Hello, World!");
|
||||
Console.Beep();
|
||||
Console.ReadKey();
|
||||
|
||||
//Variablen erstellen
|
||||
int alter;
|
||||
string Test;
|
||||
|
||||
//Variable beschreiben
|
||||
alter = 0;
|
||||
Test = "0";
|
||||
|
||||
Console.WriteLine(alter); //Die Variable in Display ausgeben
|
||||
Test = Console.ReadLine(); //Konsolen Eingabe Lesen und in die Variable schreiben
|
||||
Console.WriteLine(Test);
|
||||
Console.ReadKey();
|
||||
*/
|
||||
|
||||
//Rechen Operationen
|
||||
/*
|
||||
//Deklaration Variablen
|
||||
int Zahl_1;
|
||||
int Zahl_2;
|
||||
int Zahl_3;
|
||||
|
||||
//Welche Operatoren sind alle Möglich für Rechnunen
|
||||
Zahl_1 = 5 + 10; //15
|
||||
Zahl_1 = 5 - 10; // -5
|
||||
Zahl_1 = 5 * 10; // 50
|
||||
Zahl_1 = 5 / 10; // 2
|
||||
Zahl_1 = 16 % 3; //Modulo Rechnung, gibt uns den Rest aus // 1
|
||||
|
||||
Zahl_2 = 5;
|
||||
Zahl_3 = 5;
|
||||
|
||||
Console.WriteLine(Zahl_1);
|
||||
Console.WriteLine(Zahl_2 + Zahl_3);
|
||||
Console.ReadKey();
|
||||
*/
|
||||
|
||||
//If Abfragen
|
||||
/*
|
||||
int Alter = 0;
|
||||
|
||||
if (Alter >= 18)
|
||||
{
|
||||
Console.WriteLine("Dein Mudda");
|
||||
Console.ReadKey();
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Geh zu deiner Mudda zurück");
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
//Switch Blöcke (Case Anweisung)
|
||||
/*
|
||||
int Monat = 1;
|
||||
|
||||
switch (Monat)
|
||||
{
|
||||
case 1:
|
||||
Console.WriteLine("Januar");
|
||||
Console.ReadKey();
|
||||
break;
|
||||
|
||||
case 2:
|
||||
Console.WriteLine("Februar");
|
||||
Console.ReadKey();
|
||||
break;
|
||||
|
||||
case 3:
|
||||
Console.WriteLine("März");
|
||||
Console.ReadKey();
|
||||
break;
|
||||
|
||||
case 4:
|
||||
Console.WriteLine("April");
|
||||
Console.ReadKey();
|
||||
break;
|
||||
|
||||
case 5:
|
||||
Console.WriteLine("Mai");
|
||||
Console.ReadKey();
|
||||
break;
|
||||
default:
|
||||
Console.WriteLine("DefaultGang");
|
||||
break;
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
//While Schleife
|
||||
//kopfgesteuerte Schleife
|
||||
int Zahl = 1;
|
||||
|
||||
while (Zahl <= 10){
|
||||
Console.WriteLine("Wiederholung: " + Zahl);
|
||||
Zahl += 1;
|
||||
}
|
||||
Console.ReadKey();
|
||||
int Platzhalter = 1;
|
||||
Console.WriteLine();
|
||||
|
||||
|
||||
//Do Schleife
|
||||
//Fußgesteuerte Schleife
|
||||
|
||||
int Zahl2 = 1;
|
||||
|
||||
do
|
||||
{
|
||||
Console.WriteLine("Wiederholung Nr.2: " + Zahl2);
|
||||
Zahl2 += 1;
|
||||
}
|
||||
while (Zahl2 <= 10);
|
||||
|
||||
Console.ReadLine();
|
||||
*/
|
||||
|
||||
/*
|
||||
//For Schleife
|
||||
|
||||
for (int i = 1; i <= 10; i++) //++ = Counter + 1 Verkürzung
|
||||
{
|
||||
Console.WriteLine("Schleifenwiederholung Nr: " + i);
|
||||
}
|
||||
Console.ReadKey();
|
||||
*/
|
||||
|
||||
/*
|
||||
//Arrays 1D Liste von Daten
|
||||
string[] namenListe = new string[3];
|
||||
|
||||
namenListe[0] = "Melvin";
|
||||
namenListe[1] = "Jassens";
|
||||
namenListe[2] = "Peter";
|
||||
|
||||
Console.WriteLine(namenListe);
|
||||
Console.WriteLine(namenListe[0]);
|
||||
Console.WriteLine(namenListe[1]);
|
||||
Console.WriteLine(namenListe[2]);
|
||||
Console.ReadLine();
|
||||
*/
|
||||
|
||||
//2D Array Tabelle von Daten
|
||||
/*
|
||||
string[,] produktliste = new string[2, 2];
|
||||
|
||||
//Zeile 1
|
||||
produktliste[0, 0] = "Senf";
|
||||
produktliste[0, 1] = "1 Euro";
|
||||
|
||||
//Zeile 2
|
||||
produktliste[1, 0] = "Kokain";
|
||||
produktliste[1, 1] = "50 Euro";
|
||||
|
||||
Console.WriteLine("Produkt: " + produktliste[0,0] + "\nPreis: " + produktliste[0,1] + "\n");
|
||||
Console.WriteLine("Produkt: " + produktliste[1,0] + "\nPreis: " + produktliste[1,1] + "\n");
|
||||
Console.ReadLine();
|
||||
*/
|
||||
/*
|
||||
//Werte von Datentypen Konvertieren
|
||||
string Text = "12";
|
||||
int Zahl;
|
||||
|
||||
Zahl = int.Parse(Text);
|
||||
Console.WriteLine(Zahl + 5);
|
||||
Console.ReadKey();
|
||||
*/
|
||||
Reference in New Issue
Block a user