Skip to content
Snippets Groups Projects
Commit ec65827c authored by AA3578's avatar AA3578
Browse files

Added Teht06_1 and Teht08_3, WIP

parent b582e645
Branches master
No related tags found
No related merge requests found
using System;
namespace Teht06_1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Excercise 6.1");
SetVehicleEfficiency Vehicle1;
Vehicle1.Name = "Moped";
Vehicle1.ModelYear = 1990;
Vehicle1.Efficiency = 0;
Console.WriteLine(Vehicle1);
}
struct SetVehicleEfficiency
{
public string Name;
public int ModelYear;
public int Efficiency;
public static void SetEfficiency()
{
if (SetVehicleEfficiency.ModelYear >= 1990)
{
return "10";
}
}
}
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
</Project>

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31624.102
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Teht06_1", "Teht06_1.csproj", "{744DE829-4185-488B-AF47-31C04405B7E1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{744DE829-4185-488B-AF47-31C04405B7E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{744DE829-4185-488B-AF47-31C04405B7E1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{744DE829-4185-488B-AF47-31C04405B7E1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{744DE829-4185-488B-AF47-31C04405B7E1}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {BB75E155-6A99-440F-B761-7D33D4DC0867}
EndGlobalSection
EndGlobal

using System;
namespace Teht06_1 {
}

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31624.102
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Teht08_3", "Teht08_3\Teht08_3.csproj", "{3BFD39F3-86F5-4D7C-A269-FB37569D790D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3BFD39F3-86F5-4D7C-A269-FB37569D790D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3BFD39F3-86F5-4D7C-A269-FB37569D790D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3BFD39F3-86F5-4D7C-A269-FB37569D790D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3BFD39F3-86F5-4D7C-A269-FB37569D790D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {593FEDED-68F1-4A3C-994F-8DC1210A6D43}
EndGlobalSection
EndGlobal
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Teht08_3
{
class Movie
{
}
}
using System;
namespace Teht08_3
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
</Project>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment