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
800dc0ba
Commit
800dc0ba
authored
Nov 20, 2017
by
Uwe Wienkop
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2D-Feldfunktionen
parent
d4b5a7bd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
163 additions
and
0 deletions
+163
-0
Prog1_WS2017-18/07ZweidimFelder/07ZweidimFelder.csproj
Prog1_WS2017-18/07ZweidimFelder/07ZweidimFelder.csproj
+60
-0
Prog1_WS2017-18/07ZweidimFelder/App.config
Prog1_WS2017-18/07ZweidimFelder/App.config
+6
-0
Prog1_WS2017-18/07ZweidimFelder/Program.cs
Prog1_WS2017-18/07ZweidimFelder/Program.cs
+55
-0
Prog1_WS2017-18/07ZweidimFelder/Properties/AssemblyInfo.cs
Prog1_WS2017-18/07ZweidimFelder/Properties/AssemblyInfo.cs
+36
-0
Prog1_WS2017-18/Prog1_WS2017-18.sln
Prog1_WS2017-18/Prog1_WS2017-18.sln
+6
-0
No files found.
Prog1_WS2017-18/07ZweidimFelder/07ZweidimFelder.csproj
0 → 100644
View file @
800dc0ba
<?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>
{7C40EA65-0A72-4104-860D-523FE1A177CE}
</ProjectGuid>
<OutputType>
Exe
</OutputType>
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<RootNamespace>
_07ZweidimFelder
</RootNamespace>
<AssemblyName>
07ZweidimFelder
</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/07ZweidimFelder/App.config
0 → 100644
View file @
800dc0ba
<?
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/07ZweidimFelder/Program.cs
0 → 100644
View file @
800dc0ba
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
_07ZweidimFelder
{
class
Program
{
static
void
Main
(
string
[]
args
)
{
int
[,]
f
=
new
int
[
10
,
10
];
Rahmen
(
f
);
Ausgeben
(
f
);
}
private
static
void
Rahmen
(
int
[,]
f
)
{
int
untersteZeile
=
f
.
GetLength
(
0
)
-
1
;
int
rechteSpalte
=
f
.
GetLength
(
1
)
-
1
;
for
(
int
s
=
0
;
s
<
f
.
GetLength
(
1
);
s
++)
{
f
[
0
,
s
]
+=
5
;
// Oberste Zeile
f
[
untersteZeile
,
s
]
+=
6
;
// Unterste Zeile
}
for
(
int
z
=
0
;
z
<
f
.
GetLength
(
0
);
z
++)
{
f
[
z
,
0
]
+=
3
;
// linker Rand
f
[
z
,
rechteSpalte
]
+=
4
;
// rechter Rand
}
int
anzDiagElemente
=
/* if */
(
f
.
GetLength
(
0
)
<
f
.
GetLength
(
1
))
?
/* then */
f
.
GetLength
(
0
)
:
/* else */
f
.
GetLength
(
1
);
for
(
int
i
=
0
;
i
<
anzDiagElemente
;
i
++)
{
f
[
i
,
i
]
+=
7
;
f
[
i
,
anzDiagElemente
-
1
-
i
]
+=
8
;
}
}
static
void
Ausgeben
(
int
[,]
f
)
{
for
(
int
z
=
0
;
z
<
f
.
GetLength
(
0
);
z
++)
{
for
(
int
s
=
0
;
s
<
f
.
GetLength
(
1
);
s
++)
{
Console
.
Write
(
$"
{
f
[
z
,
s
],
5
}
"
);
}
Console
.
WriteLine
();
}
Console
.
WriteLine
(
"--------------------------"
);
}
}
}
Prog1_WS2017-18/07ZweidimFelder/Properties/AssemblyInfo.cs
0 → 100644
View file @
800dc0ba
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
(
"07ZweidimFelder"
)]
[
assembly
:
AssemblyDescription
(
""
)]
[
assembly
:
AssemblyConfiguration
(
""
)]
[
assembly
:
AssemblyCompany
(
""
)]
[
assembly
:
AssemblyProduct
(
"07ZweidimFelder"
)]
[
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
(
"7c40ea65-0a72-4104-860d-523fe1a177ce"
)]
// 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 @
800dc0ba
...
...
@@ -58,6 +58,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "06Funktionen", "06Funktione
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "07FelderAlsParameter", "07FelderAlsParameter\07FelderAlsParameter.csproj", "{1A633D3F-B34D-4BEA-95B4-EF35144E08B7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "07ZweidimFelder", "07ZweidimFelder\07ZweidimFelder.csproj", "{7C40EA65-0A72-4104-860D-523FE1A177CE}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
...
...
@@ -164,6 +166,10 @@ Global
{1A633D3F-B34D-4BEA-95B4-EF35144E08B7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1A633D3F-B34D-4BEA-95B4-EF35144E08B7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1A633D3F-B34D-4BEA-95B4-EF35144E08B7}.Release|Any CPU.Build.0 = Release|Any CPU
{7C40EA65-0A72-4104-860D-523FE1A177CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7C40EA65-0A72-4104-860D-523FE1A177CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7C40EA65-0A72-4104-860D-523FE1A177CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7C40EA65-0A72-4104-860D-523FE1A177CE}.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