C#
This commit is contained in:
parent
e8293852a0
commit
9f151da503
16
Emne 3/ConsoleApp1/ConsoleApp1.sln
Normal file
16
Emne 3/ConsoleApp1/ConsoleApp1.sln
Normal file
|
@ -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
|
10
Emne 3/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj
Normal file
10
Emne 3/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
15
Emne 3/ConsoleApp1/ConsoleApp1/Program.cs
Normal file
15
Emne 3/ConsoleApp1/ConsoleApp1/Program.cs
Normal file
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,4 +1,7 @@
|
||||||
// See https://aka.ms/new-console-template for more information
|
// See https://aka.ms/new-console-template for more information
|
||||||
Console.WriteLine("Hello, World!");
|
Console.WriteLine("Hello, World!");
|
||||||
|
Console.WriteLine("Press any key to exit...");
|
||||||
|
|
||||||
Console.WriteLine("This is a basic console application.");
|
float f;
|
||||||
|
f = 0.0f;
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue