Gyakorlás
This commit is contained in:
10
Tombok2/Plus/Plus.csproj
Normal file
10
Tombok2/Plus/Plus.csproj
Normal file
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
14
Tombok2/Plus/Program.cs
Normal file
14
Tombok2/Plus/Program.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace Plus
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
int a = 10;
|
||||
int b = a++;
|
||||
int c = ++a;
|
||||
|
||||
Console.WriteLine($"B:{b},C:{c}");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user