Vektorok feladat
This commit is contained in:
6
Binaris/App.config
Normal file
6
Binaris/App.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
||||
26
Binaris/Binaris.cs
Normal file
26
Binaris/Binaris.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Binaris {
|
||||
internal class Binaris {
|
||||
private string szam;
|
||||
|
||||
public Binaris() {
|
||||
Console.WriteLine("Kérem a számot");
|
||||
szam = Console.ReadLine();
|
||||
egyesek_szama();
|
||||
}
|
||||
|
||||
public void egyesek_szama() {
|
||||
int count = 0;
|
||||
for (int i = 0; i < szam.Length; i++)
|
||||
if (szam[i].Equals('1')) count++;
|
||||
|
||||
Console.WriteLine("Egyesek szama: " + count);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
54
Binaris/Binaris.csproj
Normal file
54
Binaris/Binaris.csproj
Normal file
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{B9D84424-1C01-4F48-A27E-301AF2992F18}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>Binaris</RootNamespace>
|
||||
<AssemblyName>Binaris</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Binaris.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
14
Binaris/Program.cs
Normal file
14
Binaris/Program.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Binaris {
|
||||
internal class Program {
|
||||
static void Main(string[] args) {
|
||||
Binaris binaris = new Binaris();
|
||||
Console.ReadKey();
|
||||
}
|
||||
}
|
||||
}
|
||||
36
Binaris/Properties/AssemblyInfo.cs
Normal file
36
Binaris/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Binaris")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Binaris")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2022")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("b9d84424-1c01-4f48-a27e-301af2992f18")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
BIN
Binaris/bin/Debug/Binaris.exe
Normal file
BIN
Binaris/bin/Debug/Binaris.exe
Normal file
Binary file not shown.
6
Binaris/bin/Debug/Binaris.exe.config
Normal file
6
Binaris/bin/Debug/Binaris.exe.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
||||
BIN
Binaris/bin/Debug/Binaris.pdb
Normal file
BIN
Binaris/bin/Debug/Binaris.pdb
Normal file
Binary file not shown.
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||
BIN
Binaris/obj/Debug/Binaris.csproj.AssemblyReference.cache
Normal file
BIN
Binaris/obj/Debug/Binaris.csproj.AssemblyReference.cache
Normal file
Binary file not shown.
1
Binaris/obj/Debug/Binaris.csproj.CoreCompileInputs.cache
Normal file
1
Binaris/obj/Debug/Binaris.csproj.CoreCompileInputs.cache
Normal file
@@ -0,0 +1 @@
|
||||
c3e4d6db489fd33fa389a9b349d3e7172e438be5
|
||||
8
Binaris/obj/Debug/Binaris.csproj.FileListAbsolute.txt
Normal file
8
Binaris/obj/Debug/Binaris.csproj.FileListAbsolute.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
C:\dev\c#\c-sharp\Binaris\bin\Debug\Binaris.exe.config
|
||||
C:\dev\c#\c-sharp\Binaris\bin\Debug\Binaris.exe
|
||||
C:\dev\c#\c-sharp\Binaris\bin\Debug\Binaris.pdb
|
||||
C:\dev\c#\c-sharp\Binaris\obj\Debug\Binaris.csproj.AssemblyReference.cache
|
||||
C:\dev\c#\c-sharp\Binaris\obj\Debug\Binaris.csproj.SuggestedBindingRedirects.cache
|
||||
C:\dev\c#\c-sharp\Binaris\obj\Debug\Binaris.csproj.CoreCompileInputs.cache
|
||||
C:\dev\c#\c-sharp\Binaris\obj\Debug\Binaris.exe
|
||||
C:\dev\c#\c-sharp\Binaris\obj\Debug\Binaris.pdb
|
||||
BIN
Binaris/obj/Debug/Binaris.exe
Normal file
BIN
Binaris/obj/Debug/Binaris.exe
Normal file
Binary file not shown.
BIN
Binaris/obj/Debug/Binaris.pdb
Normal file
BIN
Binaris/obj/Debug/Binaris.pdb
Normal file
Binary file not shown.
BIN
Binaris/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Normal file
BIN
Binaris/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Normal file
Binary file not shown.
Reference in New Issue
Block a user