Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Prog1_WS2017_18_Wienkop
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Uwe Wienkop
Prog1_WS2017_18_Wienkop
Commits
95535897
Commit
95535897
authored
Jan 10, 2018
by
Uwe Wienkop
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Vokabelverwaltung aus Klausur WS16/17 hinzugefügt
parent
65b6b58c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
233 additions
and
2 deletions
+233
-2
Prog1_WS2017-18/12Sparbuch_WS1213/Program.cs
Prog1_WS2017-18/12Sparbuch_WS1213/Program.cs
+11
-2
Prog1_WS2017-18/12Vokabelverwaltung_WS1617/12Vokabelverwaltung_WS1617.csproj
...okabelverwaltung_WS1617/12Vokabelverwaltung_WS1617.csproj
+55
-0
Prog1_WS2017-18/12Vokabelverwaltung_WS1617/App.config
Prog1_WS2017-18/12Vokabelverwaltung_WS1617/App.config
+6
-0
Prog1_WS2017-18/12Vokabelverwaltung_WS1617/Program.cs
Prog1_WS2017-18/12Vokabelverwaltung_WS1617/Program.cs
+109
-0
Prog1_WS2017-18/12Vokabelverwaltung_WS1617/Properties/AssemblyInfo.cs
...-18/12Vokabelverwaltung_WS1617/Properties/AssemblyInfo.cs
+36
-0
Prog1_WS2017-18/12Vokabelverwaltung_WS1617/Vokabeln.txt
Prog1_WS2017-18/12Vokabelverwaltung_WS1617/Vokabeln.txt
+10
-0
Prog1_WS2017-18/Prog1_WS2017-18.sln
Prog1_WS2017-18/Prog1_WS2017-18.sln
+6
-0
No files found.
Prog1_WS2017-18/12Sparbuch_WS1213/Program.cs
View file @
95535897
...
...
@@ -11,14 +11,23 @@ namespace _12Sparbuch_WS1213
string
kontonummer
;
double
guthaben
;
public
static
double
zinssatz
=
0.005
;
static
double
zinssatz
=
0.005
;
public
static
double
Zinssatz
{
get
{
return
zinssatz
;
}
set
{
if
(
value
>
0
)
zinssatz
=
value
;
else
throw
new
ArgumentOutOfRangeException
();
}
}
}
class
Program
{
static
void
Main
(
string
[]
args
)
{
Sparbuch
.
Zinssatz
=
0.01
;
Sparbuch
sb1
=
new
Sparbuch
();
Sparbuch
.
zinssatz
=
0.01
;
}
}
}
Prog1_WS2017-18/12Vokabelverwaltung_WS1617/12Vokabelverwaltung_WS1617.csproj
0 → 100644
View file @
95535897
<?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>
{2EFE0182-F315-4D04-A71F-29EE03532652}
</ProjectGuid>
<OutputType>
Exe
</OutputType>
<RootNamespace>
_12Vokabelverwaltung_WS1617
</RootNamespace>
<AssemblyName>
12Vokabelverwaltung_WS1617
</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=
"Vokabeln.txt"
/>
</ItemGroup>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
</Project>
\ No newline at end of file
Prog1_WS2017-18/12Vokabelverwaltung_WS1617/App.config
0 → 100644
View file @
95535897
<?
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/12Vokabelverwaltung_WS1617/Program.cs
0 → 100644
View file @
95535897
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.IO
;
namespace
_12Vokabelverwaltung_WS1617
{
class
VokabelManager
{
string
[]
vokPaare
=
new
string
[
300
];
// Speicher für die Vokabelpaare OHNE die Abschnittnamen
string
[]
absNamen
=
new
string
[
10
];
// Feld für die Abschnittnamen
int
[]
absAnf
=
new
int
[
10
];
// Indexfeld, in dem die Abschnittanfänge im Feld Vokabelpaare gemerkt werden
int
anzVok
=
0
;
// Anzahl der im Vokabelfeld gespeicherten Vokabeln
int
anzAbs
=
0
;
// Anzahl der Vokabelabschnitte
public
void
VokabelnLesen
(
string
Dateiname
)
{
StreamReader
sr
=
new
StreamReader
(
Dateiname
);
while
(!
sr
.
EndOfStream
)
{
string
zeile
=
sr
.
ReadLine
();
if
(
zeile
[
0
]
==
'#'
)
{
absNamen
[
anzAbs
]
=
zeile
.
Substring
(
1
);
absAnf
[
anzAbs
]
=
anzVok
;
anzAbs
++;
}
else
{
vokPaare
[
anzVok
]
=
zeile
;
anzVok
++;
}
}
sr
.
Close
();
}
//public void VokabelnLesen(string Dateiname)
// {
// StreamReader sr = new StreamReader(Dateiname);
// int anzVokabelnImAbschnitt = 0;
// int aktuellerAbschnitt = anzAbschnitte;
// while (sr.Peek() >= 0)
// {
// string zeile = sr.ReadLine();
// if (zeile[0] == '#')
// {
// Abschnittnamen[anzAbschnitte] = zeile.Substring(1);
// anzVokabelnImAbschnitt = 0;
// aktuellerAbschnitt = anzAbschnitte;
// anzAbschnitte++;
// }
// else
// {
// Vokabelpaare[aktuellerAbschnitt, anzVokabelnImAbschnitt] = zeile;
// anzVokabelnImAbschnitt++;
// }
// }
// sr.Close();
//}
public
void
Suchen
(
string
vokabel
)
{
int
j
=
0
;
int
aktAbschnitt
=
0
;
for
(
int
i
=
0
;
i
<
anzVok
;
i
++)
{
if
(
i
==
absAnf
[
j
])
{
aktAbschnitt
=
j
;
j
++;
}
if
(
vokPaare
[
i
].
Contains
(
vokabel
))
Console
.
WriteLine
(
"Abschnitt: {0} - Vokabelpaar: {1}"
,
absNamen
[
aktAbschnitt
],
vokPaare
[
i
]);
}
}
}
class
Program
{
static
int
[,]
Transponieren
(
int
[,]
f
)
{
int
[,]
fErg
=
new
int
[
f
.
GetLength
(
1
),
f
.
GetLength
(
0
)];
for
(
int
i
=
0
;
i
<
f
.
GetLength
(
0
);
i
++)
for
(
int
j
=
0
;
j
<
f
.
GetLength
(
1
);
j
++)
fErg
[
j
,
i
]
=
f
[
i
,
j
];
return
fErg
;
}
static
void
Main
(
string
[]
args
)
{
VokabelManager
vm
=
new
VokabelManager
();
vm
.
VokabelnLesen
(
@"..\..\Vokabeln.txt"
);
vm
.
Suchen
(
"let"
);
vm
.
Suchen
(
"au"
);
int
[,]
f
=
{
{
0
,
1
,
2
,
3
,
4
},
{
5
,
6
,
7
,
8
,
9
}
};
int
[,]
f2
=
Transponieren
(
f
);
for
(
int
i
=
0
;
i
<
f2
.
GetLength
(
0
);
i
++)
{
for
(
int
j
=
0
;
j
<
f2
.
GetLength
(
1
);
j
++)
Console
.
Write
(
f2
[
i
,
j
]
+
" "
);
Console
.
WriteLine
();
}
}
}
}
Prog1_WS2017-18/12Vokabelverwaltung_WS1617/Properties/AssemblyInfo.cs
0 → 100644
View file @
95535897
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
(
"12Vokabelverwaltung_WS1617"
)]
[
assembly
:
AssemblyDescription
(
""
)]
[
assembly
:
AssemblyConfiguration
(
""
)]
[
assembly
:
AssemblyCompany
(
""
)]
[
assembly
:
AssemblyProduct
(
"12Vokabelverwaltung_WS1617"
)]
[
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
(
"2efe0182-f315-4d04-a71f-29ee03532652"
)]
// 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/12Vokabelverwaltung_WS1617/Vokabeln.txt
0 → 100644
View file @
95535897
#Unit 1 Hello
Let's start|Lass(t) uns anfangen
let's|lass(t) uns
to let|lassen
us|uns
to start|anfangen, starten
#Friends
friend|Freund
Look|Schaut!
to look|(aus)sehen, schauen
Prog1_WS2017-18/Prog1_WS2017-18.sln
View file @
95535897
...
...
@@ -109,6 +109,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "12Programmcode", "12Program
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "12Sparbuch_WS1213", "12Sparbuch_WS1213\12Sparbuch_WS1213.csproj", "{A8C68F94-E71F-4B72-9DB6-362EC8C26EA6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "12Vokabelverwaltung_WS1617", "12Vokabelverwaltung_WS1617\12Vokabelverwaltung_WS1617.csproj", "{2EFE0182-F315-4D04-A71F-29EE03532652}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
...
...
@@ -315,6 +317,10 @@ Global
{A8C68F94-E71F-4B72-9DB6-362EC8C26EA6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A8C68F94-E71F-4B72-9DB6-362EC8C26EA6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A8C68F94-E71F-4B72-9DB6-362EC8C26EA6}.Release|Any CPU.Build.0 = Release|Any CPU
{2EFE0182-F315-4D04-A71F-29EE03532652}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2EFE0182-F315-4D04-A71F-29EE03532652}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2EFE0182-F315-4D04-A71F-29EE03532652}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2EFE0182-F315-4D04-A71F-29EE03532652}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
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