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
219b469c
Commit
219b469c
authored
Nov 13, 2017
by
Uwe Wienkop
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kleine Updates
parent
87bebc70
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
317 additions
and
3 deletions
+317
-3
Prog1_WS2017-18/05Character/Program.cs
Prog1_WS2017-18/05Character/Program.cs
+1
-0
Prog1_WS2017-18/05Felder/Program.cs
Prog1_WS2017-18/05Felder/Program.cs
+18
-0
Prog1_WS2017-18/06MinimumUndSortieren/06MinimumUndSortieren.csproj
...017-18/06MinimumUndSortieren/06MinimumUndSortieren.csproj
+60
-0
Prog1_WS2017-18/06MinimumUndSortieren/App.config
Prog1_WS2017-18/06MinimumUndSortieren/App.config
+6
-0
Prog1_WS2017-18/06MinimumUndSortieren/Program.cs
Prog1_WS2017-18/06MinimumUndSortieren/Program.cs
+37
-0
Prog1_WS2017-18/06MinimumUndSortieren/Properties/AssemblyInfo.cs
...S2017-18/06MinimumUndSortieren/Properties/AssemblyInfo.cs
+36
-0
Prog1_WS2017-18/06ZweidimFelder/06ZweidimFelder.csproj
Prog1_WS2017-18/06ZweidimFelder/06ZweidimFelder.csproj
+60
-0
Prog1_WS2017-18/06ZweidimFelder/App.config
Prog1_WS2017-18/06ZweidimFelder/App.config
+6
-0
Prog1_WS2017-18/06ZweidimFelder/Program.cs
Prog1_WS2017-18/06ZweidimFelder/Program.cs
+45
-0
Prog1_WS2017-18/06ZweidimFelder/Properties/AssemblyInfo.cs
Prog1_WS2017-18/06ZweidimFelder/Properties/AssemblyInfo.cs
+36
-0
Prog1_WS2017-18/Prog1_WS2017-18.sln
Prog1_WS2017-18/Prog1_WS2017-18.sln
+12
-3
No files found.
Prog1_WS2017-18/05Character/Program.cs
View file @
219b469c
...
...
@@ -46,6 +46,7 @@ namespace _05Character
string
codiert
=
CaesarCodierung
(
"CAESAR AN SEINE LEGION: ANGRIFF AUF DIE GALLIER"
,
6
);
Console
.
WriteLine
(
codiert
);
Console
.
WriteLine
();
for
(
int
i
=
-
1
;
i
>-
26
;
i
--)
{
Console
.
WriteLine
(
CaesarCodierung
(
codiert
,
i
));
...
...
Prog1_WS2017-18/05Felder/Program.cs
View file @
219b469c
...
...
@@ -11,6 +11,9 @@ namespace _05Felder
static
void
Main
(
string
[]
args
)
{
// int px0 = 20, py0 = 30;
int
[]
fx
;
// Anlegen einer Feldreferenzvariablen
fx
=
new
int
[
10
];
// Anfordern von Speicher für 10 integer
// Adressierung von 0..9
int
[]
f
=
{
10
,
20
,
30
,
45
,
50
,
15
,
5
,
20
,
25
};
int
min
=
f
[
0
];
// FALSCH: min = 0;
...
...
@@ -19,8 +22,23 @@ namespace _05Felder
if
(
item
<
min
)
min
=
item
;
}
// Alternativ mit einer for-Schleife
min
=
f
[
0
];
for
(
int
i
=
1
;
i
<
f
.
Length
;
i
++)
// Start ab dem 2. Element: f[1]
{
if
(
f
[
i
]
<
min
)
min
=
f
[
i
];
}
Console
.
WriteLine
(
$"Das Minimum beträgt
{
min
}
"
);
// Vertauschen der Werte zweier Variablen
int
a
=
3
,
b
=
4
;
int
h
;
h
=
a
;
a
=
b
;
b
=
h
;
}
}
...
...
Prog1_WS2017-18/06MinimumUndSortieren/06MinimumUndSortieren.csproj
0 → 100644
View file @
219b469c
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"14.0"
DefaultTargets=
"Build"
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>
{1688D52B-5FD0-4C02-B3C3-AD68D50B499B}
</ProjectGuid>
<OutputType>
Exe
</OutputType>
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<RootNamespace>
_06MinimumUndSortieren
</RootNamespace>
<AssemblyName>
06MinimumUndSortieren
</AssemblyName>
<TargetFrameworkVersion>
v4.5.2
</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"
/>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
\ No newline at end of file
Prog1_WS2017-18/06MinimumUndSortieren/App.config
0 → 100644
View file @
219b469c
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
startup
>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.5.2"
/>
</
startup
>
</
configuration
>
\ No newline at end of file
Prog1_WS2017-18/06MinimumUndSortieren/Program.cs
0 → 100644
View file @
219b469c
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
_06MinimumUndSortieren
{
class
Program
{
static
void
Main
(
string
[]
args
)
{
int
[]
f
=
{
10
,
20
,
30
,
45
,
50
,
15
,
5
,
20
,
25
};
for
(
int
k
=
0
;
k
<
f
.
Length
-
1
;
k
++)
{
int
minInd
=
k
;
for
(
int
i
=
k
+
1
;
i
<
f
.
Length
;
i
++)
{
if
(
f
[
i
]
<
f
[
minInd
])
minInd
=
i
;
}
//Console.WriteLine($"Das Minimum beträgt {f[minInd]} an der Stelle {minInd}");
// Vertauschen der Werte zweier Variablen
if
(
minInd
!=
k
)
// Befindet sich das Min. an der richtigen Position?
{
int
h
=
f
[
k
];
f
[
k
]
=
f
[
minInd
];
f
[
minInd
]
=
h
;
}
}
foreach
(
int
item
in
f
)
{
Console
.
Write
(
$"
{
item
}
"
);
}
Console
.
WriteLine
();
}
}
}
Prog1_WS2017-18/06MinimumUndSortieren/Properties/AssemblyInfo.cs
0 → 100644
View file @
219b469c
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
(
"06MinimumUndSortieren"
)]
[
assembly
:
AssemblyDescription
(
""
)]
[
assembly
:
AssemblyConfiguration
(
""
)]
[
assembly
:
AssemblyCompany
(
""
)]
[
assembly
:
AssemblyProduct
(
"06MinimumUndSortieren"
)]
[
assembly
:
AssemblyCopyright
(
"Copyright © 2017"
)]
[
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
(
"1688d52b-5fd0-4c02-b3c3-ad68d50b499b"
)]
// 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"
)]
Prog1_WS2017-18/06ZweidimFelder/06ZweidimFelder.csproj
0 → 100644
View file @
219b469c
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"14.0"
DefaultTargets=
"Build"
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>
{45A20C47-A99B-49AA-BCD7-4C4E9E193AA6}
</ProjectGuid>
<OutputType>
Exe
</OutputType>
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<RootNamespace>
_06ZweidimFelder
</RootNamespace>
<AssemblyName>
06ZweidimFelder
</AssemblyName>
<TargetFrameworkVersion>
v4.5.2
</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"
/>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
\ No newline at end of file
Prog1_WS2017-18/06ZweidimFelder/App.config
0 → 100644
View file @
219b469c
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
startup
>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.5.2"
/>
</
startup
>
</
configuration
>
\ No newline at end of file
Prog1_WS2017-18/06ZweidimFelder/Program.cs
0 → 100644
View file @
219b469c
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
_06ZweidimFelder
{
class
Program
{
static
void
Main
(
string
[]
args
)
{
int
[]
f
=
new
int
[
5
];
int
[,]
f2
=
new
int
[
7
,
7
];
// Initialisieren des 2D-Feldes mit 1
//for (int z = 0; z < 4; z++)
//{
// for (int s = 0; s < 4; s++)
// {
// f2[z, s] = 1;
// }
//}
for
(
int
z
=
0
;
z
<
7
;
z
++)
{
for
(
int
s
=
0
;
s
<
7
;
s
++)
{
Console
.
Write
(
$"
{
f2
[
z
,
s
],
3
}
"
);
;
}
Console
.
WriteLine
();
}
// Vorschläge für Übungen mit 2D-Feldern
// 1) Rahmen
// 2) Hauptdiagonale / Nebendiagonale
// 3) Oberer und unterer Rand
// 4) Linker und rechter Rand
// 5) Sechseck an anzugebender Ausgangsposition (wie bei Game of Life)
// 6) Abwechselnde Werte 0 / 1 oder 0, 1, 2, 3, 0, 1, 2, ... usw.
int
[,,]
f3
=
new
int
[
2
,
3
,
4
];
// Zwei Ebenen, jeweils 3 Zeilen zu 4 Spalten
}
}
}
Prog1_WS2017-18/06ZweidimFelder/Properties/AssemblyInfo.cs
0 → 100644
View file @
219b469c
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
(
"06ZweidimFelder"
)]
[
assembly
:
AssemblyDescription
(
""
)]
[
assembly
:
AssemblyConfiguration
(
""
)]
[
assembly
:
AssemblyCompany
(
""
)]
[
assembly
:
AssemblyProduct
(
"06ZweidimFelder"
)]
[
assembly
:
AssemblyCopyright
(
"Copyright © 2017"
)]
[
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
(
"45a20c47-a99b-49aa-bcd7-4c4e9e193aa6"
)]
// 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"
)]
Prog1_WS2017-18/Prog1_WS2017-18.sln
View file @
219b469c
...
...
@@ -46,6 +46,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "05StringSpeed", "05StringSp
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "05Felder", "05Felder\05Felder.csproj", "{DF0C7E25-0F18-4AF4-AF3B-392B076CE690}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "06MinimumUndSortieren", "06MinimumUndSortieren\06MinimumUndSortieren.csproj", "{1688D52B-5FD0-4C02-B3C3-AD68D50B499B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "06ZweidimFelder", "06ZweidimFelder\06ZweidimFelder.csproj", "{45A20C47-A99B-49AA-BCD7-4C4E9E193AA6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
...
...
@@ -128,11 +132,16 @@ Global
{DF0C7E25-0F18-4AF4-AF3B-392B076CE690}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DF0C7E25-0F18-4AF4-AF3B-392B076CE690}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DF0C7E25-0F18-4AF4-AF3B-392B076CE690}.Release|Any CPU.Build.0 = Release|Any CPU
{1688D52B-5FD0-4C02-B3C3-AD68D50B499B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1688D52B-5FD0-4C02-B3C3-AD68D50B499B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1688D52B-5FD0-4C02-B3C3-AD68D50B499B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1688D52B-5FD0-4C02-B3C3-AD68D50B499B}.Release|Any CPU.Build.0 = Release|Any CPU
{45A20C47-A99B-49AA-BCD7-4C4E9E193AA6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{45A20C47-A99B-49AA-BCD7-4C4E9E193AA6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{45A20C47-A99B-49AA-BCD7-4C4E9E193AA6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{45A20C47-A99B-49AA-BCD7-4C4E9E193AA6}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{DF0C7E25-0F18-4AF4-AF3B-392B076CE690} = {DD66E463-4183-46B2-A475-A587C445E359}
EndGlobalSection
EndGlobal
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