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
65b6b58c
Commit
65b6b58c
authored
Jan 09, 2018
by
Uwe Wienkop
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates
parent
e04b71b9
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
454 additions
and
13 deletions
+454
-13
Prog1_WS2017-18/09TextdateiSchreiben/Program.cs
Prog1_WS2017-18/09TextdateiSchreiben/Program.cs
+4
-4
Prog1_WS2017-18/09Textdateien/Program.cs
Prog1_WS2017-18/09Textdateien/Program.cs
+2
-2
Prog1_WS2017-18/11KlassePersonWS1516/Program.cs
Prog1_WS2017-18/11KlassePersonWS1516/Program.cs
+4
-4
Prog1_WS2017-18/12Programmcode/12Programmcode.csproj
Prog1_WS2017-18/12Programmcode/12Programmcode.csproj
+52
-0
Prog1_WS2017-18/12Programmcode/App.config
Prog1_WS2017-18/12Programmcode/App.config
+6
-0
Prog1_WS2017-18/12Programmcode/Program.cs
Prog1_WS2017-18/12Programmcode/Program.cs
+28
-0
Prog1_WS2017-18/12Programmcode/Properties/AssemblyInfo.cs
Prog1_WS2017-18/12Programmcode/Properties/AssemblyInfo.cs
+36
-0
Prog1_WS2017-18/12Schiff_WS1617/12Schiff_WS1617.csproj
Prog1_WS2017-18/12Schiff_WS1617/12Schiff_WS1617.csproj
+52
-0
Prog1_WS2017-18/12Schiff_WS1617/App.config
Prog1_WS2017-18/12Schiff_WS1617/App.config
+6
-0
Prog1_WS2017-18/12Schiff_WS1617/Program.cs
Prog1_WS2017-18/12Schiff_WS1617/Program.cs
+68
-0
Prog1_WS2017-18/12Schiff_WS1617/Properties/AssemblyInfo.cs
Prog1_WS2017-18/12Schiff_WS1617/Properties/AssemblyInfo.cs
+36
-0
Prog1_WS2017-18/12Sparbuch_WS1213/12Sparbuch_WS1213.csproj
Prog1_WS2017-18/12Sparbuch_WS1213/12Sparbuch_WS1213.csproj
+52
-0
Prog1_WS2017-18/12Sparbuch_WS1213/App.config
Prog1_WS2017-18/12Sparbuch_WS1213/App.config
+6
-0
Prog1_WS2017-18/12Sparbuch_WS1213/Program.cs
Prog1_WS2017-18/12Sparbuch_WS1213/Program.cs
+24
-0
Prog1_WS2017-18/12Sparbuch_WS1213/Properties/AssemblyInfo.cs
Prog1_WS2017-18/12Sparbuch_WS1213/Properties/AssemblyInfo.cs
+36
-0
Prog1_WS2017-18/12Uhrzeit/Program.cs
Prog1_WS2017-18/12Uhrzeit/Program.cs
+24
-3
Prog1_WS2017-18/Prog1_WS2017-18.sln
Prog1_WS2017-18/Prog1_WS2017-18.sln
+18
-0
No files found.
Prog1_WS2017-18/09TextdateiSchreiben/Program.cs
View file @
65b6b58c
...
...
@@ -14,7 +14,7 @@ namespace _09TextdateiSchreiben
StreamWriter
wr
=
new
StreamWriter
(
@"..\..\Daten.txt"
);
// Öffnet die Datei zum Schreiben. Eine möglicherweise
// existierende Datei wird ohne Nachfragen überschrieben!
wr
.
AutoFlush
=
true
;
//
wr.AutoFlush = true;
for
(
int
i
=
1
;
i
<=
10000
;
i
++)
{
...
...
@@ -26,9 +26,9 @@ namespace _09TextdateiSchreiben
//wr.Flush();
// Speichern in die Datei erzwingen, unabhängig davon, ob
// der Pufferbereich voll ist
//
wr.Close();
// Schließt die Datei. Nicht vergessen!
wr
.
Close
();
// Schließt die Datei. Nicht vergessen!
}
}
}
Prog1_WS2017-18/09Textdateien/Program.cs
View file @
65b6b58c
...
...
@@ -13,7 +13,7 @@ namespace _09Textdateien
{
StreamReader
sr
=
new
StreamReader
(
@"..\..\Textdatei.txt"
);
// @ vor String: String ohne Escape-Zeichen
// sr.ReadLine();
Wegwerfen der ersten Zeile
sr
.
ReadLine
();
//
Wegwerfen der ersten Zeile
int
anz
=
Convert
.
ToInt32
(
sr
.
ReadLine
());
//string[] feiertage = new string[anz];
int
i
=
0
;
...
...
@@ -33,7 +33,7 @@ namespace _09Textdateien
// Nur hier: Die erste Zeile mit der Zeilenangabe überlesen
char
[]
separatoren
=
{
'-'
,
'.'
};
while
(
!
sr
.
EndOfStream
)
// Gibt es noch Daten in der Datei?
while
(
sr
.
Peek
()
>=
0
)
// Gibt es noch Daten in der Datei?
{
string
zeile
=
sr
.
ReadLine
();
feiertage
[
i
]
=
zeile
;
...
...
Prog1_WS2017-18/11KlassePersonWS1516/Program.cs
View file @
65b6b58c
...
...
@@ -6,9 +6,9 @@ using System.Threading.Tasks;
namespace
_11KlassePersonWS1516
{
enum
MTyp
{
Angestellter
,
Gruppenleiter
,
Abteilungsleiter
}
class
Person
{
public
enum
MTyp
{
Angestellter
,
Gruppenleiter
,
Abteilungsleiter
}
string
name
;
double
gehalt
;
int
persnr
;
...
...
@@ -63,9 +63,9 @@ namespace _11KlassePersonWS1516
{
Person
.
NaechstePersNr
=
100
;
Person
[]
personen
=
{
new
Person
(
"Huber"
,
2000
,
MTyp
.
Abteilungsleiter
),
new
Person
(
"Meier"
,
2200
,
MTyp
.
Gruppenleiter
)
};
double
gehaelter
=
Person
.
Gehaltsvolumen
(
personen
,
MTyp
.
Gruppenleiter
);
new
Person
(
"Huber"
,
2000
,
Person
.
MTyp
.
Abteilungsleiter
),
new
Person
(
"Meier"
,
2200
,
Person
.
MTyp
.
Gruppenleiter
)
};
double
gehaelter
=
Person
.
Gehaltsvolumen
(
personen
,
Person
.
MTyp
.
Gruppenleiter
);
}
}
}
Prog1_WS2017-18/12Programmcode/12Programmcode.csproj
0 → 100644
View file @
65b6b58c
<?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>
{194B9981-64EF-4B2B-A38F-5503CF4622A4}
</ProjectGuid>
<OutputType>
Exe
</OutputType>
<RootNamespace>
_12Programmcode
</RootNamespace>
<AssemblyName>
12Programmcode
</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>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
</Project>
\ No newline at end of file
Prog1_WS2017-18/12Programmcode/App.config
0 → 100644
View file @
65b6b58c
<?
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/12Programmcode/Program.cs
0 → 100644
View file @
65b6b58c
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
_12Programmcode
{
class
Program
{
static
int
Rechne
(
int
a
,
int
b
)
{
Console
.
WriteLine
(
$"a=
{
a
}
, b=
{
b
}
"
);
if
(
b
==
0
)
{
return
0
;
}
else
{
return
a
+
Rechne
(
a
,
b
-
1
);
}
}
static
void
Main
(
string
[]
args
)
{
Console
.
WriteLine
(
Rechne
(
5
,
2
));
}
}
}
Prog1_WS2017-18/12Programmcode/Properties/AssemblyInfo.cs
0 → 100644
View file @
65b6b58c
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
(
"12Programmcode"
)]
[
assembly
:
AssemblyDescription
(
""
)]
[
assembly
:
AssemblyConfiguration
(
""
)]
[
assembly
:
AssemblyCompany
(
""
)]
[
assembly
:
AssemblyProduct
(
"12Programmcode"
)]
[
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
(
"194b9981-64ef-4b2b-a38f-5503cf4622a4"
)]
// 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/12Schiff_WS1617/12Schiff_WS1617.csproj
0 → 100644
View file @
65b6b58c
<?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>
{A9F4DFF1-43D5-478D-B9B9-95E7A47C8DDF}
</ProjectGuid>
<OutputType>
Exe
</OutputType>
<RootNamespace>
_12Schiff_WS1617
</RootNamespace>
<AssemblyName>
12Schiff_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>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
</Project>
\ No newline at end of file
Prog1_WS2017-18/12Schiff_WS1617/App.config
0 → 100644
View file @
65b6b58c
<?
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/12Schiff_WS1617/Program.cs
0 → 100644
View file @
65b6b58c
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
_12Schiff_WS1617
{
enum
Antriebe
{
Motor
,
Segel
,
Ruder
}
class
Schiff
{
string
name
;
double
laenge
;
Antriebe
antrieb
;
public
Schiff
(
string
Name
,
double
Laenge
,
Antriebe
Antrieb
=
Antriebe
.
Segel
)
{
name
=
Name
;
laenge
=
Laenge
;
antrieb
=
Antrieb
;
}
//public Schiff(string Name, double Laenge)
// :this(Name,Laenge,Antriebe.Segel)
//{ }
public
double
Laenge
{
get
{
return
laenge
;
}
set
{
if
(
value
>
0
)
laenge
=
value
;
else
throw
new
ArgumentOutOfRangeException
();
}
}
public
double
VRumpf
()
=>
2.43
*
Math
.
Sqrt
(
this
.
laenge
);
public
static
double
Mittel
(
Schiff
[]
Schiffe
,
Antriebe
Antriebsart
)
{
double
sum
=
0
;
int
anz
=
0
;
for
(
int
i
=
0
;
i
<
Schiffe
.
Length
;
i
++)
{
if
(
Schiffe
[
i
].
antrieb
==
Antriebsart
)
{
sum
+=
Schiffe
[
i
].
laenge
;
anz
++;
}
}
if
(
anz
>
0
)
return
sum
/
anz
;
else
return
0
;
// return (anz > 0) ? sum / anz : 0;
}
}
class
Program
{
static
void
Main
(
string
[]
args
)
{
Schiff
SeinDromeda
=
new
Schiff
(
"Dromeda"
,
333
,
Antriebe
.
Ruder
);
Console
.
WriteLine
(
SeinDromeda
.
VRumpf
());
Schiff
[]
schiffe
=
new
Schiff
[
5
];
double
mittel
=
Schiff
.
Mittel
(
schiffe
,
Antriebe
.
Segel
);
//SeinDromeda.SucheAehnlichesSchiff(schiffe);
}
}
}
Prog1_WS2017-18/12Schiff_WS1617/Properties/AssemblyInfo.cs
0 → 100644
View file @
65b6b58c
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
(
"12Schiff_WS1617"
)]
[
assembly
:
AssemblyDescription
(
""
)]
[
assembly
:
AssemblyConfiguration
(
""
)]
[
assembly
:
AssemblyCompany
(
""
)]
[
assembly
:
AssemblyProduct
(
"12Schiff_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
(
"a9f4dff1-43d5-478d-b9b9-95e7a47c8ddf"
)]
// 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/12Sparbuch_WS1213/12Sparbuch_WS1213.csproj
0 → 100644
View file @
65b6b58c
<?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>
{A8C68F94-E71F-4B72-9DB6-362EC8C26EA6}
</ProjectGuid>
<OutputType>
Exe
</OutputType>
<RootNamespace>
_12Sparbuch_WS1213
</RootNamespace>
<AssemblyName>
12Sparbuch_WS1213
</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>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
</Project>
\ No newline at end of file
Prog1_WS2017-18/12Sparbuch_WS1213/App.config
0 → 100644
View file @
65b6b58c
<?
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/12Sparbuch_WS1213/Program.cs
0 → 100644
View file @
65b6b58c
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
_12Sparbuch_WS1213
{
class
Sparbuch
{
string
kontonummer
;
double
guthaben
;
public
static
double
zinssatz
=
0.005
;
}
class
Program
{
static
void
Main
(
string
[]
args
)
{
Sparbuch
sb1
=
new
Sparbuch
();
Sparbuch
.
zinssatz
=
0.01
;
}
}
}
Prog1_WS2017-18/12Sparbuch_WS1213/Properties/AssemblyInfo.cs
0 → 100644
View file @
65b6b58c
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
(
"12Sparbuch_WS1213"
)]
[
assembly
:
AssemblyDescription
(
""
)]
[
assembly
:
AssemblyConfiguration
(
""
)]
[
assembly
:
AssemblyCompany
(
""
)]
[
assembly
:
AssemblyProduct
(
"12Sparbuch_WS1213"
)]
[
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
(
"a8c68f94-e71f-4b72-9db6-362ec8c26ea6"
)]
// 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/12Uhrzeit/Program.cs
View file @
65b6b58c
...
...
@@ -6,13 +6,33 @@ using System.Threading.Tasks;
namespace
_12Uhrzeit
{
enum
Tageszeiten
{
morgens
=
8
,
mittags
=
12
,
abends
=
20
}
class
Uhrzeit
{
/* private */
int
stunde
,
minute
;
/* private */
int
stunde
;
public
int
Minute
{
get
;
private
set
;
}
// Der Compiler legt eine Var. vom Typ int an
// und greift darauf zu
static
Tageszeiten
defaultStunde
=
Tageszeiten
.
morgens
;
public
static
Tageszeiten
DefaultStunde
{
set
{
defaultStunde
=
value
;
}
}
public
Uhrzeit
()
{
Stunde
=
8
;
Minute
=
0
;
}
public
Uhrzeit
(
Tageszeiten
zeiten
)
{
if
(
zeiten
==
Tageszeiten
.
mittags
)
{
Stunde
=
(
int
)
Tageszeiten
.
mittags
;
Minute
=
0
;
}
}
public
Uhrzeit
(
int
std
,
int
min
)
{
Stunde
=
std
;
// Stunde => Propertyaufruf
m
inute
=
min
;
M
inute
=
min
;
}
public
int
Stunde
{
...
...
@@ -28,9 +48,10 @@ namespace _12Uhrzeit
{
static
void
Main
(
string
[]
args
)
{
Uhrzeit
.
DefaultStunde
=
Tageszeiten
.
mittags
;
Uhrzeit
u1
=
new
Uhrzeit
(
9
,
15
);
Uhrzeit
u2
=
new
Uhrzeit
(
10
,
30
);
Console
.
WriteLine
(
u2
.
Stunde
);
Console
.
WriteLine
(
u2
.
Stunde
);
}
}
}
Prog1_WS2017-18/Prog1_WS2017-18.sln
View file @
65b6b58c
...
...
@@ -103,6 +103,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "12PunktKomma", "12PunktKomm
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "12Uhrzeit", "12Uhrzeit\12Uhrzeit.csproj", "{4FA72366-595B-473C-8A48-1F71E15FD8CE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "12Schiff_WS1617", "12Schiff_WS1617\12Schiff_WS1617.csproj", "{A9F4DFF1-43D5-478D-B9B9-95E7A47C8DDF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "12Programmcode", "12Programmcode\12Programmcode.csproj", "{194B9981-64EF-4B2B-A38F-5503CF4622A4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "12Sparbuch_WS1213", "12Sparbuch_WS1213\12Sparbuch_WS1213.csproj", "{A8C68F94-E71F-4B72-9DB6-362EC8C26EA6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
...
...
@@ -297,6 +303,18 @@ Global
{4FA72366-595B-473C-8A48-1F71E15FD8CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4FA72366-595B-473C-8A48-1F71E15FD8CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4FA72366-595B-473C-8A48-1F71E15FD8CE}.Release|Any CPU.Build.0 = Release|Any CPU
{A9F4DFF1-43D5-478D-B9B9-95E7A47C8DDF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A9F4DFF1-43D5-478D-B9B9-95E7A47C8DDF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A9F4DFF1-43D5-478D-B9B9-95E7A47C8DDF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A9F4DFF1-43D5-478D-B9B9-95E7A47C8DDF}.Release|Any CPU.Build.0 = Release|Any CPU
{194B9981-64EF-4B2B-A38F-5503CF4622A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{194B9981-64EF-4B2B-A38F-5503CF4622A4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{194B9981-64EF-4B2B-A38F-5503CF4622A4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{194B9981-64EF-4B2B-A38F-5503CF4622A4}.Release|Any CPU.Build.0 = Release|Any CPU
{A8C68F94-E71F-4B72-9DB6-362EC8C26EA6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{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
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