Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Uwe Wienkop
Prog1_WS2017_18_Wienkop
Commits
2069fbaf
Commit
2069fbaf
authored
Jan 15, 2018
by
Uwe Wienkop
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suchen & Dateiverwaltung (Konto) SS2017
parent
bae300fb
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
183 additions
and
5 deletions
+183
-5
Prog1_WS2017-18/13DateiverarbeitungKonto_SS2017/13DateiverarbeitungKonto_SS2017.csproj
...eitungKonto_SS2017/13DateiverarbeitungKonto_SS2017.csproj
+55
-0
Prog1_WS2017-18/13DateiverarbeitungKonto_SS2017/App.config
Prog1_WS2017-18/13DateiverarbeitungKonto_SS2017/App.config
+6
-0
Prog1_WS2017-18/13DateiverarbeitungKonto_SS2017/Kontendaten.txt
...WS2017-18/13DateiverarbeitungKonto_SS2017/Kontendaten.txt
+4
-0
Prog1_WS2017-18/13DateiverarbeitungKonto_SS2017/Program.cs
Prog1_WS2017-18/13DateiverarbeitungKonto_SS2017/Program.cs
+40
-0
Prog1_WS2017-18/13DateiverarbeitungKonto_SS2017/Properties/AssemblyInfo.cs
...3DateiverarbeitungKonto_SS2017/Properties/AssemblyInfo.cs
+36
-0
Prog1_WS2017-18/13Suchen/Program.cs
Prog1_WS2017-18/13Suchen/Program.cs
+35
-4
Prog1_WS2017-18/Prog1_WS2017-18.sln
Prog1_WS2017-18/Prog1_WS2017-18.sln
+7
-1
No files found.
Prog1_WS2017-18/13DateiverarbeitungKonto_SS2017/13DateiverarbeitungKonto_SS2017.csproj
0 → 100644
View file @
2069fbaf
<?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>
{019A8373-A3A5-4A25-935B-0A942B7D1C94}
</ProjectGuid>
<OutputType>
Exe
</OutputType>
<RootNamespace>
_13DateiverarbeitungKonto_SS2017
</RootNamespace>
<AssemblyName>
13DateiverarbeitungKonto_SS2017
</AssemblyName>
<TargetFrameworkVersion>
v4.6.1
</TargetFrameworkVersion>
<FileAlignment>
512
</FileAlignment>
<AutoGenerateBindingRedirects>
true
</AutoGenerateBindingRedirects>
</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=
"Program.cs"
/>
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
</ItemGroup>
<ItemGroup>
<None
Include=
"App.config"
/>
</ItemGroup>
<ItemGroup>
<Content
Include=
"Kontendaten.txt"
/>
</ItemGroup>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
</Project>
\ No newline at end of file
Prog1_WS2017-18/13DateiverarbeitungKonto_SS2017/App.config
0 → 100644
View file @
2069fbaf
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
startup
>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.6.1"
/>
</
startup
>
</
configuration
>
\ No newline at end of file
Prog1_WS2017-18/13DateiverarbeitungKonto_SS2017/Kontendaten.txt
0 → 100644
View file @
2069fbaf
3
Jean-Luc Picard;12345;100,75
Luke Skywalker;76540;333,45
Spock;223344;1024,77
Prog1_WS2017-18/13DateiverarbeitungKonto_SS2017/Program.cs
0 → 100644
View file @
2069fbaf
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.IO
;
namespace
_13DateiverarbeitungKonto_SS2017
{
class
Konto
{
public
Konto
(
string
name
,
int
kontonr
,
double
guthaben
)
{
}
public
double
Zinsen
()
{
return
0
;
}
public
void
Kontenlesen
(
string
dateiname
,
out
Konto
[]
kontofeld
,
out
double
zinsen
)
{
StreamReader
sr
=
new
StreamReader
(
dateiname
);
int
anz
=
Convert
.
ToInt32
(
sr
.
ReadLine
());
kontofeld
=
new
Konto
[
anz
];
zinsen
=
0
;
for
(
int
i
=
0
;
i
<
anz
;
i
++)
{
string
zeile
=
sr
.
ReadLine
();
string
[]
d
=
zeile
.
Split
(
';'
);
kontofeld
[
i
]
=
new
Konto
(
d
[
0
],
Convert
.
ToInt32
(
d
[
1
]),
Convert
.
ToDouble
(
d
[
2
]));
zinsen
+=
kontofeld
[
i
].
Zinsen
();
}
sr
.
Close
();
}
}
class
Program
{
static
void
Main
(
string
[]
args
)
{
}
}
}
Prog1_WS2017-18/13DateiverarbeitungKonto_SS2017/Properties/AssemblyInfo.cs
0 → 100644
View file @
2069fbaf
using
System.Reflection
;
using
System.Runtime.CompilerServices
;
using
System.Runtime.InteropServices
;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[
assembly
:
AssemblyTitle
(
"13DateiverarbeitungKonto_SS2017"
)]
[
assembly
:
AssemblyDescription
(
""
)]
[
assembly
:
AssemblyConfiguration
(
""
)]
[
assembly
:
AssemblyCompany
(
""
)]
[
assembly
:
AssemblyProduct
(
"13DateiverarbeitungKonto_SS2017"
)]
[
assembly
:
AssemblyCopyright
(
"Copyright © 2018"
)]
[
assembly
:
AssemblyTrademark
(
""
)]
[
assembly
:
AssemblyCulture
(
""
)]
// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly
// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
[
assembly
:
ComVisible
(
false
)]
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
[
assembly
:
Guid
(
"019a8373-a3a5-4a25-935b-0a942b7d1c94"
)]
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
//
// Hauptversion
// Nebenversion
// Buildnummer
// Revision
//
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[
assembly
:
AssemblyVersion
(
"1.0.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.0.0.0"
)]
Prog1_WS2017-18/13Suchen/Program.cs
View file @
2069fbaf
...
@@ -42,7 +42,7 @@ namespace _13Suchen
...
@@ -42,7 +42,7 @@ namespace _13Suchen
{
{
if
(
item
.
Contains
(
wort
))
if
(
item
.
Contains
(
wort
))
{
{
gefunden
=
wort
;
gefunden
=
item
;
break
;
break
;
}
}
}
}
...
@@ -54,11 +54,35 @@ namespace _13Suchen
...
@@ -54,11 +54,35 @@ namespace _13Suchen
foreach
(
string
item
in
sfeld
)
foreach
(
string
item
in
sfeld
)
{
{
if
(
item
.
Contains
(
wort
))
if
(
item
.
Contains
(
wort
))
gefunden
=
wort
;
gefunden
=
item
;
}
}
return
gefunden
;
return
gefunden
;
}
}
static
bool
istPalindrom
(
string
s
)
static
bool
IstPalindrom
(
string
s
)
{
{
for
(
int
i
=
0
,
j
=
s
.
Length
-
1
;
i
<
j
;
i
++,
j
--)
for
(
int
i
=
0
,
j
=
s
.
Length
-
1
;
i
<
j
;
i
++,
j
--)
{
{
...
@@ -67,7 +91,7 @@ namespace _13Suchen
...
@@ -67,7 +91,7 @@ namespace _13Suchen
}
}
return
true
;
return
true
;
}
}
static
bool
IstPrimzahl
(
int
zahl
)
static
bool
IstPrimzahl
1
(
int
zahl
)
{
{
bool
istPrimzahl
=
true
;
bool
istPrimzahl
=
true
;
...
@@ -81,6 +105,13 @@ namespace _13Suchen
...
@@ -81,6 +105,13 @@ namespace _13Suchen
}
}
return
istPrimzahl
;
return
istPrimzahl
;
}
}
static
bool
IstPrimzahl2
(
int
zahl
)
{
for
(
int
teiler
=
2
;
teiler
<
zahl
;
teiler
++)
if
(
zahl
%
teiler
==
0
)
return
false
;
return
true
;
}
static
bool
EnthaeltWortNochSterne
(
string
wort
)
static
bool
EnthaeltWortNochSterne
(
string
wort
)
{
{
foreach
(
char
z
in
wort
)
foreach
(
char
z
in
wort
)
...
...
Prog1_WS2017-18/Prog1_WS2017-18.sln
View file @
2069fbaf
Microsoft Visual Studio Solution File, Format Version 12.00
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
# Visual Studio 15
VisualStudioVersion = 15.0.27130.20
1
0
VisualStudioVersion = 15.0.27130.20
2
0
MinimumVisualStudioVersion = 10.0.40219.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "01Pythagoras", "01Pythagoras\01Pythagoras.csproj", "{DAAF9A37-4A55-4E1F-B38F-7A8DA20D4009}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "01Pythagoras", "01Pythagoras\01Pythagoras.csproj", "{DAAF9A37-4A55-4E1F-B38F-7A8DA20D4009}"
EndProject
EndProject
...
@@ -113,6 +113,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "12Vokabelverwaltung_WS1617"
...
@@ -113,6 +113,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "12Vokabelverwaltung_WS1617"
EndProject
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "13Suchen", "13Suchen\13Suchen.csproj", "{856681DE-7287-4C20-BA31-9D783E22306B}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "13Suchen", "13Suchen\13Suchen.csproj", "{856681DE-7287-4C20-BA31-9D783E22306B}"
EndProject
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "13DateiverarbeitungKonto_SS2017", "13DateiverarbeitungKonto_SS2017\13DateiverarbeitungKonto_SS2017.csproj", "{019A8373-A3A5-4A25-935B-0A942B7D1C94}"
EndProject
Global
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|Any CPU = Debug|Any CPU
...
@@ -327,6 +329,10 @@ Global
...
@@ -327,6 +329,10 @@ Global
{856681DE-7287-4C20-BA31-9D783E22306B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{856681DE-7287-4C20-BA31-9D783E22306B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{856681DE-7287-4C20-BA31-9D783E22306B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{856681DE-7287-4C20-BA31-9D783E22306B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{856681DE-7287-4C20-BA31-9D783E22306B}.Release|Any CPU.Build.0 = Release|Any CPU
{856681DE-7287-4C20-BA31-9D783E22306B}.Release|Any CPU.Build.0 = Release|Any CPU
{019A8373-A3A5-4A25-935B-0A942B7D1C94}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{019A8373-A3A5-4A25-935B-0A942B7D1C94}.Debug|Any CPU.Build.0 = Debug|Any CPU
{019A8373-A3A5-4A25-935B-0A942B7D1C94}.Release|Any CPU.ActiveCfg = Release|Any CPU
{019A8373-A3A5-4A25-935B-0A942B7D1C94}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
HideSolutionNode = FALSE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment