소스 검색

Добавьте файлы проекта.

Arina 9 달 전
부모
커밋
aa2d60250d
4개의 변경된 파일120개의 추가작업 그리고 0개의 파일을 삭제
  1. 25 0
      re.sln
  2. 63 0
      re/Parime.cs
  3. 22 0
      re/Program.cs
  4. 10 0
      re/re.csproj

+ 25 - 0
re.sln

@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.6.33723.286
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "re", "re\re.csproj", "{D563C751-C790-4E0B-BD7A-8B68946CC9FF}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{D563C751-C790-4E0B-BD7A-8B68946CC9FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{D563C751-C790-4E0B-BD7A-8B68946CC9FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{D563C751-C790-4E0B-BD7A-8B68946CC9FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{D563C751-C790-4E0B-BD7A-8B68946CC9FF}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {603B7071-4C1E-44FC-A10C-CF5EACF5DD34}
+	EndGlobalSection
+EndGlobal

+ 63 - 0
re/Parime.cs

@@ -0,0 +1,63 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace re
+{
+    interface Data
+    {
+        void Particl();
+        string Ovo(string name);
+        int Saaaa(int g, int f);
+    }
+    internal class Time : Data
+    {
+        protected string type;
+        public virtual string Ovo(string name)
+        {
+            return type;
+        }
+
+        public void Particl()
+        {
+            Console.Write("Твое имя: ");
+            type = Console.ReadLine();
+        }
+
+        public int Saaaa(int g, int f)
+        {
+            if (g < f)
+            { Console.WriteLine("Что-то"); }
+            else Console.WriteLine("Ого");
+            return g;
+        }
+        internal class Diplo : Time
+        {
+            string nnn;
+            new public string Ovo()//переопределили
+            {
+                nnn = "В";
+                return nnn;
+
+            }
+            public int Saaaa(int g,int f) 
+            {
+                return f*3;
+            }
+            public void Rar()
+            {
+                Console.WriteLine("Твой оклад");
+                int oklad = Convert.ToInt32(Console.ReadLine());
+                Console.WriteLine("Сколько ты работал");
+                int dni = Convert.ToInt32(Console.ReadLine());
+                double kpd = (oklad*dni)/ 21; 
+                Console.WriteLine($"Твой оклад за отработанное время {kpd}%");
+
+
+            }
+
+        }
+    }
+}

+ 22 - 0
re/Program.cs

@@ -0,0 +1,22 @@
+using System;
+using System.Xml.Schema;
+using static re.Time;
+
+namespace re // Note: actual namespace depends on the project name.
+{
+    internal class Program
+    {
+        static void Main(string[] args)
+        {
+            Time hg = new Time();
+            hg.Ovo("увупы");
+            hg.Saaaa(3, 8);
+            hg.Particl();
+
+            Diplo fd = new Diplo();
+            fd.Ovo();
+            fd.Saaaa(4, 8);
+            fd.Rar();
+        }
+    }
+}

+ 10 - 0
re/re.csproj

@@ -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>