diff --git a/01_output_comments/01_output_comments.csproj b/01_output_comments/01_output_comments.csproj new file mode 100644 index 0000000..1f8da63 --- /dev/null +++ b/01_output_comments/01_output_comments.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {AE98EF86-FE9F-47A2-AAFE-E7B25AEB9188} + Exe + _01_output_comments + 01_output_comments + v4.8 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/01_output_comments/App.config b/01_output_comments/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/01_output_comments/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/01_output_comments/Program.cs b/01_output_comments/Program.cs new file mode 100644 index 0000000..1166dce --- /dev/null +++ b/01_output_comments/Program.cs @@ -0,0 +1,76 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; + +// namesraum +namespace _01_output_comments +{ + // Klasse + internal class Program + { + // Methode , Funktion + static void Main(string[] args) + { + /* + * Mehrzeilige Kommentare + * Noch eine Zeile + * bla bla hier passiert folgendes: + * - sdfdsf + * + */ + + + // Einzeiliger Kommentar + // noch eine Zeile + // natürlich ergeben das mehrere Zeilen + + int eineZahl = 5; // Hier steht eine Zahl in einer varibale + + // hier steht der Kommentar davor + double percent = 16.3; + + // hiermit wird immer eine ganze Zeile ausgegeben + Console.WriteLine("Hallo Welt"); + Console.WriteLine("Hallo Welt 2"); + Console.WriteLine("Hallo Welt 3"); + Console.WriteLine(eineZahl); + + // Ausgabe ohne zeilenumbruch + Console.Write("Alles "); + Console.Write("in "); + Console.Write("einer "); + Console.Write("Zeile "); + + // setzen der Hintergrundfarbe + Console.BackgroundColor = ConsoleColor.Green; + Console.WriteLine("Hallo Green"); + Console.BackgroundColor = ConsoleColor.Black; + Console.WriteLine("Hallo normal"); + + // setzen der Schriftfarbe + Console.ForegroundColor = ConsoleColor.Red; + Console.WriteLine("Hallo in rot"); + + // farben resetten + Console.ResetColor(); + + // löschen des Bildschirms + //Console.Clear(); + + // Anzeige des Cursors + Console.CursorVisible = false; + + // Fenster Titel + Console.Title = "Mein Erstes Programm"; + + // Ändern der Fenstergröße + Console.SetWindowSize(160, 30); + + // Auf tastatureingabe warten + Console.ReadKey(); + } + } +} \ No newline at end of file diff --git a/01_output_comments/Properties/AssemblyInfo.cs b/01_output_comments/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..d6e006b --- /dev/null +++ b/01_output_comments/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, +// die einer Assembly zugeordnet sind. +[assembly: AssemblyTitle("01_output_comments")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("01_output_comments")] +[assembly: AssemblyCopyright("Copyright © 2026")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly +// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von +// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. +[assembly: ComVisible(false)] + +// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird +[assembly: Guid("ae98ef86-fe9f-47a2-aafe-e7b25aeb9188")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/02_variables_and_datatypes/02_variables_and_datatypes.csproj b/02_variables_and_datatypes/02_variables_and_datatypes.csproj new file mode 100644 index 0000000..db485aa --- /dev/null +++ b/02_variables_and_datatypes/02_variables_and_datatypes.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {4FBF5EE1-EA2B-40D5-B9FA-179E243B60B4} + Exe + _02_variables_and_datatypes + 02_variables_and_datatypes + v4.8 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/02_variables_and_datatypes/App.config b/02_variables_and_datatypes/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/02_variables_and_datatypes/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/02_variables_and_datatypes/Program.cs b/02_variables_and_datatypes/Program.cs new file mode 100644 index 0000000..5858b5a --- /dev/null +++ b/02_variables_and_datatypes/Program.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace _02_variables_and_datatypes +{ + internal class Program + { + static void Main(string[] args) + { + } + } +} diff --git a/02_variables_and_datatypes/Properties/AssemblyInfo.cs b/02_variables_and_datatypes/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..00aeeab --- /dev/null +++ b/02_variables_and_datatypes/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, +// die einer Assembly zugeordnet sind. +[assembly: AssemblyTitle("02_variables_and_datatypes")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("02_variables_and_datatypes")] +[assembly: AssemblyCopyright("Copyright © 2026")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly +// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von +// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. +[assembly: ComVisible(false)] + +// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird +[assembly: Guid("4fbf5ee1-ea2b-40d5-b9fa-179e243b60b4")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/code_csharp_eses.sln b/code_csharp_eses.sln index 5c42a6d..387ca01 100644 --- a/code_csharp_eses.sln +++ b/code_csharp_eses.sln @@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.14.36811.4 d17.14 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "code_csharp_eses", "code_csharp_eses\code_csharp_eses.csproj", "{DEE964A6-0B3F-4892-9AF0-59C0E4B75F97}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "01_output_comments", "01_output_comments\01_output_comments.csproj", "{AE98EF86-FE9F-47A2-AAFE-E7B25AEB9188}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "02_variables_and_datatypes", "02_variables_and_datatypes\02_variables_and_datatypes.csproj", "{4FBF5EE1-EA2B-40D5-B9FA-179E243B60B4}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -11,10 +13,14 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {DEE964A6-0B3F-4892-9AF0-59C0E4B75F97}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {DEE964A6-0B3F-4892-9AF0-59C0E4B75F97}.Debug|Any CPU.Build.0 = Debug|Any CPU - {DEE964A6-0B3F-4892-9AF0-59C0E4B75F97}.Release|Any CPU.ActiveCfg = Release|Any CPU - {DEE964A6-0B3F-4892-9AF0-59C0E4B75F97}.Release|Any CPU.Build.0 = Release|Any CPU + {AE98EF86-FE9F-47A2-AAFE-E7B25AEB9188}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AE98EF86-FE9F-47A2-AAFE-E7B25AEB9188}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AE98EF86-FE9F-47A2-AAFE-E7B25AEB9188}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AE98EF86-FE9F-47A2-AAFE-E7B25AEB9188}.Release|Any CPU.Build.0 = Release|Any CPU + {4FBF5EE1-EA2B-40D5-B9FA-179E243B60B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4FBF5EE1-EA2B-40D5-B9FA-179E243B60B4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4FBF5EE1-EA2B-40D5-B9FA-179E243B60B4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4FBF5EE1-EA2B-40D5-B9FA-179E243B60B4}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/code_csharp_eses/code_csharp_eses.csproj b/code_csharp_eses/01_output_comments2.csproj similarity index 100% rename from code_csharp_eses/code_csharp_eses.csproj rename to code_csharp_eses/01_output_comments2.csproj