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_WS2018_19_Wienkop
Commits
a72bbbd1
Commit
a72bbbd1
authored
Oct 31, 2018
by
Uwe Wienkop
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mi, 31.10.18
parent
e474484c
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
532 additions
and
3 deletions
+532
-3
01Pythagoras/04Funktionen_03_Rekursion/04Funktionen_03_Rekursion.csproj
...4Funktionen_03_Rekursion/04Funktionen_03_Rekursion.csproj
+53
-0
01Pythagoras/04Funktionen_03_Rekursion/App.config
01Pythagoras/04Funktionen_03_Rekursion/App.config
+6
-0
01Pythagoras/04Funktionen_03_Rekursion/Program.cs
01Pythagoras/04Funktionen_03_Rekursion/Program.cs
+25
-0
01Pythagoras/04Funktionen_03_Rekursion/Properties/AssemblyInfo.cs
...oras/04Funktionen_03_Rekursion/Properties/AssemblyInfo.cs
+36
-0
01Pythagoras/04Funktionen_04_Fakultaet/04Funktionen_04_Fakultaet.csproj
...4Funktionen_04_Fakultaet/04Funktionen_04_Fakultaet.csproj
+53
-0
01Pythagoras/04Funktionen_04_Fakultaet/App.config
01Pythagoras/04Funktionen_04_Fakultaet/App.config
+6
-0
01Pythagoras/04Funktionen_04_Fakultaet/Program.cs
01Pythagoras/04Funktionen_04_Fakultaet/Program.cs
+38
-0
01Pythagoras/04Funktionen_04_Fakultaet/Properties/AssemblyInfo.cs
...oras/04Funktionen_04_Fakultaet/Properties/AssemblyInfo.cs
+36
-0
01Pythagoras/04Funktionen_05_Params/04Funktionen_05_Params.csproj
...oras/04Funktionen_05_Params/04Funktionen_05_Params.csproj
+53
-0
01Pythagoras/04Funktionen_05_Params/App.config
01Pythagoras/04Funktionen_05_Params/App.config
+6
-0
01Pythagoras/04Funktionen_05_Params/Program.cs
01Pythagoras/04Funktionen_05_Params/Program.cs
+29
-0
01Pythagoras/04Funktionen_05_Params/Properties/AssemblyInfo.cs
...hagoras/04Funktionen_05_Params/Properties/AssemblyInfo.cs
+36
-0
01Pythagoras/Prog1_WS2018.sln
01Pythagoras/Prog1_WS2018.sln
+24
-0
04Funktionen02/04Funktionen02.csproj
04Funktionen02/04Funktionen02.csproj
+53
-0
04Funktionen02/App.config
04Funktionen02/App.config
+6
-0
04Funktionen02/Program.cs
04Funktionen02/Program.cs
+30
-0
04Funktionen02/Properties/AssemblyInfo.cs
04Funktionen02/Properties/AssemblyInfo.cs
+36
-0
04FunktionenIntro/Program.cs
04FunktionenIntro/Program.cs
+6
-3
No files found.
01Pythagoras/04Funktionen_03_Rekursion/04Funktionen_03_Rekursion.csproj
0 → 100644
View file @
a72bbbd1
<?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>
{7F4FE753-3E7B-4005-AF7D-AC8034D1301E}
</ProjectGuid>
<OutputType>
Exe
</OutputType>
<RootNamespace>
_04Funktionen_03_Rekursion
</RootNamespace>
<AssemblyName>
04Funktionen_03_Rekursion
</AssemblyName>
<TargetFrameworkVersion>
v4.6.1
</TargetFrameworkVersion>
<FileAlignment>
512
</FileAlignment>
<AutoGenerateBindingRedirects>
true
</AutoGenerateBindingRedirects>
<Deterministic>
true
</Deterministic>
</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
01Pythagoras/04Funktionen_03_Rekursion/App.config
0 → 100644
View file @
a72bbbd1
<?
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
01Pythagoras/04Funktionen_03_Rekursion/Program.cs
0 → 100644
View file @
a72bbbd1
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
_04Funktionen_03_Rekursion
{
class
Program
{
static
int
Plus1
(
int
x
)
{
double
z
;
Console
.
WriteLine
(
x
);
x
+=
1
;
x
=
Plus1
(
x
);
return
x
;
}
static
void
Main
(
string
[]
args
)
{
int
zahl
=
Plus1
(
1
);
Console
.
WriteLine
(
zahl
);
}
}
}
01Pythagoras/04Funktionen_03_Rekursion/Properties/AssemblyInfo.cs
0 → 100644
View file @
a72bbbd1
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
(
"04Funktionen_03_Rekursion"
)]
[
assembly
:
AssemblyDescription
(
""
)]
[
assembly
:
AssemblyConfiguration
(
""
)]
[
assembly
:
AssemblyCompany
(
""
)]
[
assembly
:
AssemblyProduct
(
"04Funktionen_03_Rekursion"
)]
[
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
(
"7f4fe753-3e7b-4005-af7d-ac8034d1301e"
)]
// 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"
)]
01Pythagoras/04Funktionen_04_Fakultaet/04Funktionen_04_Fakultaet.csproj
0 → 100644
View file @
a72bbbd1
<?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>
{07DB7C28-0329-40E4-B80D-13627FEB9755}
</ProjectGuid>
<OutputType>
Exe
</OutputType>
<RootNamespace>
_04Funktionen_04_Fakultaet
</RootNamespace>
<AssemblyName>
04Funktionen_04_Fakultaet
</AssemblyName>
<TargetFrameworkVersion>
v4.6.1
</TargetFrameworkVersion>
<FileAlignment>
512
</FileAlignment>
<AutoGenerateBindingRedirects>
true
</AutoGenerateBindingRedirects>
<Deterministic>
true
</Deterministic>
</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
01Pythagoras/04Funktionen_04_Fakultaet/App.config
0 → 100644
View file @
a72bbbd1
<?
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
01Pythagoras/04Funktionen_04_Fakultaet/Program.cs
0 → 100644
View file @
a72bbbd1
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
_04Funktionen_04_Fakultaet
{
class
Program
{
static
int
fakultaet
(
int
x
)
{
if
(
x
<
2
)
return
1
;
else
return
x
*
fakultaet
(
x
-
1
);
}
static
int
fib
(
int
x
)
{
if
(
x
<
2
)
return
1
;
else
return
fib
(
x
-
1
)
+
fib
(
x
-
2
);
}
static
void
Main
(
string
[]
args
)
{
Console
.
WriteLine
(
fakultaet
(
2
));
Console
.
WriteLine
(
fakultaet
(
3
));
Console
.
WriteLine
(
fakultaet
(
4
));
Console
.
WriteLine
();
Console
.
WriteLine
(
fib
(
2
));
Console
.
WriteLine
(
fib
(
3
));
Console
.
WriteLine
(
fib
(
10
));
}
}
}
01Pythagoras/04Funktionen_04_Fakultaet/Properties/AssemblyInfo.cs
0 → 100644
View file @
a72bbbd1
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
(
"04Funktionen_04_Fakultaet"
)]
[
assembly
:
AssemblyDescription
(
""
)]
[
assembly
:
AssemblyConfiguration
(
""
)]
[
assembly
:
AssemblyCompany
(
""
)]
[
assembly
:
AssemblyProduct
(
"04Funktionen_04_Fakultaet"
)]
[
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
(
"07db7c28-0329-40e4-b80d-13627feb9755"
)]
// 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"
)]
01Pythagoras/04Funktionen_05_Params/04Funktionen_05_Params.csproj
0 → 100644
View file @
a72bbbd1
<?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>
{FC1F0780-9175-48B6-AE52-ADD91352B92B}
</ProjectGuid>
<OutputType>
Exe
</OutputType>
<RootNamespace>
_04Funktionen_05_Params
</RootNamespace>
<AssemblyName>
04Funktionen_05_Params
</AssemblyName>
<TargetFrameworkVersion>
v4.6.1
</TargetFrameworkVersion>
<FileAlignment>
512
</FileAlignment>
<AutoGenerateBindingRedirects>
true
</AutoGenerateBindingRedirects>
<Deterministic>
true
</Deterministic>
</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
01Pythagoras/04Funktionen_05_Params/App.config
0 → 100644
View file @
a72bbbd1
<?
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
01Pythagoras/04Funktionen_05_Params/Program.cs
0 → 100644
View file @
a72bbbd1
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
_04Funktionen_05_Params
{
class
Program
{
static
int
Plus
(
int
x
)
{
return
x
;
}
static
int
Plus
(
int
x1
,
int
x2
)
{
return
x1
+
x2
;
}
static
int
Plus
(
int
x1
,
int
x2
,
int
x3
)
{
return
x1
+
x2
+
x3
;
}
static
int
Plus
(
double
zahl
,
params
int
[]
x
)
{
// params ~ beliebig viele Parameter werden in einem Feld zusammenfasst
// int[] ~ alle Param. MÜSSEN vom Typ int sein (oder dorthin konvertiert werden können!)
int
sum
=
0
;
for
(
int
i
=
0
;
i
<
x
.
Length
;
i
++)
sum
+=
x
[
i
];
return
sum
;
}
static
void
Main
(
string
[]
args
)
{
int
x
=
100
;
int
zahl
=
Plus
(
3.5
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
x
,
x
,
10
);
Console
.
WriteLine
(
zahl
);
}
}
}
01Pythagoras/04Funktionen_05_Params/Properties/AssemblyInfo.cs
0 → 100644
View file @
a72bbbd1
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
(
"04Funktionen_05_Params"
)]
[
assembly
:
AssemblyDescription
(
""
)]
[
assembly
:
AssemblyConfiguration
(
""
)]
[
assembly
:
AssemblyCompany
(
""
)]
[
assembly
:
AssemblyProduct
(
"04Funktionen_05_Params"
)]
[
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
(
"fc1f0780-9175-48b6-ae52-add91352b92b"
)]
// 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"
)]
01Pythagoras/Prog1_WS2018.sln
View file @
a72bbbd1
...
...
@@ -35,6 +35,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "04MehrdimensionaleFelder",
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "04FunktionenIntro", "..\04FunktionenIntro\04FunktionenIntro.csproj", "{AED871A1-E853-4F2B-A9EE-077C7D10F409}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "04Funktionen02", "..\04Funktionen02\04Funktionen02.csproj", "{9336D815-1AF6-4F37-B239-68D5A1DBDAB2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "04Funktionen_03_Rekursion", "04Funktionen_03_Rekursion\04Funktionen_03_Rekursion.csproj", "{7F4FE753-3E7B-4005-AF7D-AC8034D1301E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "04Funktionen_04_Fakultaet", "04Funktionen_04_Fakultaet\04Funktionen_04_Fakultaet.csproj", "{07DB7C28-0329-40E4-B80D-13627FEB9755}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "04Funktionen_05_Params", "04Funktionen_05_Params\04Funktionen_05_Params.csproj", "{FC1F0780-9175-48B6-AE52-ADD91352B92B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
...
...
@@ -105,6 +113,22 @@ Global
{AED871A1-E853-4F2B-A9EE-077C7D10F409}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AED871A1-E853-4F2B-A9EE-077C7D10F409}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AED871A1-E853-4F2B-A9EE-077C7D10F409}.Release|Any CPU.Build.0 = Release|Any CPU
{9336D815-1AF6-4F37-B239-68D5A1DBDAB2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9336D815-1AF6-4F37-B239-68D5A1DBDAB2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9336D815-1AF6-4F37-B239-68D5A1DBDAB2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9336D815-1AF6-4F37-B239-68D5A1DBDAB2}.Release|Any CPU.Build.0 = Release|Any CPU
{7F4FE753-3E7B-4005-AF7D-AC8034D1301E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7F4FE753-3E7B-4005-AF7D-AC8034D1301E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7F4FE753-3E7B-4005-AF7D-AC8034D1301E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7F4FE753-3E7B-4005-AF7D-AC8034D1301E}.Release|Any CPU.Build.0 = Release|Any CPU
{07DB7C28-0329-40E4-B80D-13627FEB9755}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{07DB7C28-0329-40E4-B80D-13627FEB9755}.Debug|Any CPU.Build.0 = Debug|Any CPU
{07DB7C28-0329-40E4-B80D-13627FEB9755}.Release|Any CPU.ActiveCfg = Release|Any CPU
{07DB7C28-0329-40E4-B80D-13627FEB9755}.Release|Any CPU.Build.0 = Release|Any CPU
{FC1F0780-9175-48B6-AE52-ADD91352B92B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FC1F0780-9175-48B6-AE52-ADD91352B92B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FC1F0780-9175-48B6-AE52-ADD91352B92B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FC1F0780-9175-48B6-AE52-ADD91352B92B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
...
...
04Funktionen02/04Funktionen02.csproj
0 → 100644
View file @
a72bbbd1
<?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>
{9336D815-1AF6-4F37-B239-68D5A1DBDAB2}
</ProjectGuid>
<OutputType>
Exe
</OutputType>
<RootNamespace>
_04Funktionen02
</RootNamespace>
<AssemblyName>
04Funktionen02
</AssemblyName>
<TargetFrameworkVersion>
v4.6.1
</TargetFrameworkVersion>
<FileAlignment>
512
</FileAlignment>
<AutoGenerateBindingRedirects>
true
</AutoGenerateBindingRedirects>
<Deterministic>
true
</Deterministic>
</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
04Funktionen02/App.config
0 → 100644
View file @
a72bbbd1
<?
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
04Funktionen02/Program.cs
0 → 100644
View file @
a72bbbd1
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
_04Funktionen02
{
class
Program
{
static
double
Mal2
(
double
x
)
{
x
*=
2
;
return
x
;
}
static
double
Plus1
(
double
x
)
{
x
+=
1
;
x
=
Mal2
(
x
);
return
x
;
}
static
void
Main
(
string
[]
args
)
{
double
x
=
100
;
double
zahl
=
Plus1
(
x
);
Console
.
WriteLine
(
zahl
);
Console
.
WriteLine
(
x
);
}
}
}
04Funktionen02/Properties/AssemblyInfo.cs
0 → 100644
View file @
a72bbbd1
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
(
"04Funktionen02"
)]
[
assembly
:
AssemblyDescription
(
""
)]
[
assembly
:
AssemblyConfiguration
(
""
)]
[
assembly
:
AssemblyCompany
(
""
)]
[
assembly
:
AssemblyProduct
(
"04Funktionen02"
)]
[
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
(
"9336d815-1af6-4f37-b239-68d5a1dbdab2"
)]
// 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"
)]
04FunktionenIntro/Program.cs
View file @
a72bbbd1
...
...
@@ -38,16 +38,19 @@ namespace _04FunktionenIntro
}
static
void
Main
(
string
[]
args
)
{
double
zahl
=
Plus1
(
3
,
6
);
double
zahl
=
Plus1
(
3
,
4.5
);
zahl
=
Plus1
(
3.2
,
4.5
);
zahl
=
Plus1
(
3
);
Console
.
WriteLine
(
zahl
);
double
x
=
100
;
zahl
=
Plus1
(
x
);
// An Plus1 wird der WERT von x übergeben
// call-by-value
zahl
=
Plus1
(
2
*
x
);
//zahl = Plus1(2 * x);
Console
.
WriteLine
(
zahl
);
Console
.
WriteLine
(
$"
{
x
,
10
}
"
);
x
=
(
1
/
(
int
)
Math
.
PI
)
*
3
;
}
}
}
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