diff --git a/Emne 3/ConsoleApp1/ConsoleApp1.sln b/Emne 3/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..bd875a7 --- /dev/null +++ b/Emne 3/ConsoleApp1/ConsoleApp1.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{1571DA60-F5CA-48EA-A530-46769DF80DFF}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1571DA60-F5CA-48EA-A530-46769DF80DFF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1571DA60-F5CA-48EA-A530-46769DF80DFF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1571DA60-F5CA-48EA-A530-46769DF80DFF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1571DA60-F5CA-48EA-A530-46769DF80DFF}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/Emne 3/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj b/Emne 3/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..2f4fc77 --- /dev/null +++ b/Emne 3/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,10 @@ + + + + Exe + net8.0 + enable + enable + + + diff --git a/Emne 3/ConsoleApp1/ConsoleApp1/Program.cs b/Emne 3/ConsoleApp1/ConsoleApp1/Program.cs new file mode 100644 index 0000000..36022e5 --- /dev/null +++ b/Emne 3/ConsoleApp1/ConsoleApp1/Program.cs @@ -0,0 +1,15 @@ +namespace ConsoleApp1; + +internal class Program +{ + static void Main(string[] args) + { + Console.WriteLine("Hello, World!"); + var number = GetNumber(); + } + + static int GetNumber() + { + return 7; + } +} \ No newline at end of file diff --git a/Emne 3/test/Program.cs b/Emne 3/test/Program.cs index 1b23114..99480de 100644 --- a/Emne 3/test/Program.cs +++ b/Emne 3/test/Program.cs @@ -1,4 +1,7 @@ // See https://aka.ms/new-console-template for more information Console.WriteLine("Hello, World!"); +Console.WriteLine("Press any key to exit..."); -Console.WriteLine("This is a basic console application."); + float f; + f = 0.0f; + \ No newline at end of file diff --git a/Emne 3/test/bin/Debug/net6.0/test.dll b/Emne 3/test/bin/Debug/net6.0/test.dll index 4ff9af6..8a5b3c3 100644 Binary files a/Emne 3/test/bin/Debug/net6.0/test.dll and b/Emne 3/test/bin/Debug/net6.0/test.dll differ diff --git a/Emne 3/test/bin/Debug/net6.0/test.pdb b/Emne 3/test/bin/Debug/net6.0/test.pdb index d204ce7..b406368 100644 Binary files a/Emne 3/test/bin/Debug/net6.0/test.pdb and b/Emne 3/test/bin/Debug/net6.0/test.pdb differ diff --git a/Emne 3/test/obj/Debug/net6.0/test.dll b/Emne 3/test/obj/Debug/net6.0/test.dll index 4ff9af6..8a5b3c3 100644 Binary files a/Emne 3/test/obj/Debug/net6.0/test.dll and b/Emne 3/test/obj/Debug/net6.0/test.dll differ diff --git a/Emne 3/test/obj/Debug/net6.0/test.pdb b/Emne 3/test/obj/Debug/net6.0/test.pdb index d204ce7..b406368 100644 Binary files a/Emne 3/test/obj/Debug/net6.0/test.pdb and b/Emne 3/test/obj/Debug/net6.0/test.pdb differ