From 0a1934f95a2f220f62681f9fa509c3f7d0b518f9 Mon Sep 17 00:00:00 2001 From: mrsh Date: Sun, 11 Jan 2026 23:13:26 +0100 Subject: [PATCH] pause at 31minutes --- .../1.Starting a project.md | 1 + C# Full Course for free/2.Output.md | 46 ++++++++++ C# Full Course for free/3.Variables.md | 84 +++++++++++++++++++ C# Full Course for free/4.User Input.md | 16 ++++ README.md | 14 +++- 5 files changed, 160 insertions(+), 1 deletion(-) create mode 100644 C# Full Course for free/3.Variables.md create mode 100644 C# Full Course for free/4.User Input.md diff --git a/C# Full Course for free/1.Starting a project.md b/C# Full Course for free/1.Starting a project.md index 40c3ca8..d07a14f 100644 --- a/C# Full Course for free/1.Starting a project.md +++ b/C# Full Course for free/1.Starting a project.md @@ -1,5 +1,6 @@ # Starting a project + The project inizialize automaticly inside visual studio ```C# diff --git a/C# Full Course for free/2.Output.md b/C# Full Course for free/2.Output.md index e69de29..33a4c77 100644 --- a/C# Full Course for free/2.Output.md +++ b/C# Full Course for free/2.Output.md @@ -0,0 +1,46 @@ +# Output + +## Console.Write + +to output a message in the console you can run the method +using a string literal + +```C# +Console.WriteLine("Hello"); +``` + +## Console.Write +The same but doesn't add a line at the end of the sentece + +```C# +Console.Write("Hello"); +Console.Write("You"); + +// Output +// HelloYou +``` + +## Comments + +```C# +///This is a comment + +/* this is a +* multiline command +*/ comment +``` + +## Escape Sequence + +```C# +// tab +Console.WriteLine("\tHello") +// backspace +Console.WriteLine("Hello\bWorld") +// newLine +Console.WriteLine("Hello\nWorld") +``` + +## Console.ReadKey(); + +Prevent our program to end until we type a key diff --git a/C# Full Course for free/3.Variables.md b/C# Full Course for free/3.Variables.md new file mode 100644 index 0000000..fe10d09 --- /dev/null +++ b/C# Full Course for free/3.Variables.md @@ -0,0 +1,84 @@ +# Variables + +## int + +for storing integer + +```c# +int age = 21; +``` + +## double + +can store a decimal + +```C# +double height = 300.5; +``` + +## bool + +can store boolean +only true or false + +```C# +bool alive = true; +``` + +## char + +for a single carachter + +```C# +char symbole = '@'; +``` + +## String + +don't forget the S in upper + +```C# +String name = "Hello"; +``` + +## constants + +immutable values wich are known at compile time and +do not change for th life of the program + +just add the const keyword + +```C# +const double pi = 3.14; +``` + +## Type casting + +Converting a value to a different data type +Very useful because user input will always be strings + +```C# +double a = 3.14; +int b= Convert.ToInt32(a); + +int c= 123; +double d= Convert.ToDouble(c); + +int e= 321; +String d= Convert.ToString(e); + +String g = "$"; +char h = Convert.ToChar(g); + +String i = "true"; +bool j = Convert.ToBoolean(i); +``` + +## GetType + +Get the type of a variable + +```C# +double a = 3.14; +Console.WriteLine(a.GetType()) +``` diff --git a/C# Full Course for free/4.User Input.md b/C# Full Course for free/4.User Input.md new file mode 100644 index 0000000..6a645db --- /dev/null +++ b/C# Full Course for free/4.User Input.md @@ -0,0 +1,16 @@ +# User input + +## Console.ReadLine + + +```C# +Console.Write("Type your name : "); +String name = Console.ReadLine(); + +// Can cause an error if the user write another type than int +Console.Write("What's your age : "); +int age = Convert.ToInt32(Console.ReadLine()); + +Console.WriteLine("Hello " + name); +Console.WriteLine("you are " + age + " years old"); +``` diff --git a/README.md b/README.md index 9def574..63ccaa7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,16 @@ -# C# Malware Roadmap +# C# Roadmap + +C# (pronounced “C‑sharp”) is a modern, +strongly typed, object‑oriented programming +language developed by Microsoft +that runs on the .NET platform and is +primarily used to build Windows applications, backend services, +and system‑level tools; +it combines high‑level productivity with access to low‑level operating +system features, making it suitable for everything +from desktop software and web APIs to automation, +game development, and cybersecurity tooling, +especially in Windows and Active Directory environments. ## 1.C# Full Course for free