From b85c6195522ee67986fb3e3abe72b49a13e56a0d Mon Sep 17 00:00:00 2001 From: BlubbFish Date: Sun, 15 Nov 2015 23:00:04 +0000 Subject: [PATCH] =?UTF-8?q?rock=5Fc=20hinzugef=C3=BCgt=20und=20diagram?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rock_C.sln | 20 +++++++++++ Rock_C/Rock_C.vcxproj | 68 +++++++++++++++++++++++++++++++++++ Rock_C/Rock_C.vcxproj.filters | 22 ++++++++++++ Rock_C/Rock_C.vcxproj.user | 7 ++++ Rock_C/Schaafe.cpp | 25 +++++++++++++ 5 files changed, 142 insertions(+) create mode 100644 Rock_C.sln create mode 100644 Rock_C/Rock_C.vcxproj create mode 100644 Rock_C/Rock_C.vcxproj.filters create mode 100644 Rock_C/Rock_C.vcxproj.user create mode 100644 Rock_C/Schaafe.cpp diff --git a/Rock_C.sln b/Rock_C.sln new file mode 100644 index 0000000..3f8b140 --- /dev/null +++ b/Rock_C.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Rock_C", "Rock_C\Rock_C.vcxproj", "{AA74EE84-0A06-43C2-8DD0-3BF97209C5C0}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {AA74EE84-0A06-43C2-8DD0-3BF97209C5C0}.Debug|Win32.ActiveCfg = Debug|Win32 + {AA74EE84-0A06-43C2-8DD0-3BF97209C5C0}.Debug|Win32.Build.0 = Debug|Win32 + {AA74EE84-0A06-43C2-8DD0-3BF97209C5C0}.Release|Win32.ActiveCfg = Release|Win32 + {AA74EE84-0A06-43C2-8DD0-3BF97209C5C0}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Rock_C/Rock_C.vcxproj b/Rock_C/Rock_C.vcxproj new file mode 100644 index 0000000..d4dc185 --- /dev/null +++ b/Rock_C/Rock_C.vcxproj @@ -0,0 +1,68 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {AA74EE84-0A06-43C2-8DD0-3BF97209C5C0} + Rock_C + + + + Application + true + MultiByte + + + Application + false + true + MultiByte + + + + + + + + + + + + + + + Level3 + Disabled + + + true + + + + + Level3 + MaxSpeed + true + true + + + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/Rock_C/Rock_C.vcxproj.filters b/Rock_C/Rock_C.vcxproj.filters new file mode 100644 index 0000000..75444b0 --- /dev/null +++ b/Rock_C/Rock_C.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Quelldateien + + + \ No newline at end of file diff --git a/Rock_C/Rock_C.vcxproj.user b/Rock_C/Rock_C.vcxproj.user new file mode 100644 index 0000000..d47c0e7 --- /dev/null +++ b/Rock_C/Rock_C.vcxproj.user @@ -0,0 +1,7 @@ + + + + abcdefghijklm kette2 2 + WindowsLocalDebugger + + \ No newline at end of file diff --git a/Rock_C/Schaafe.cpp b/Rock_C/Schaafe.cpp new file mode 100644 index 0000000..276f3cb --- /dev/null +++ b/Rock_C/Schaafe.cpp @@ -0,0 +1,25 @@ +#include +#include +#include +/*int main() { + unsigned long sheep = 0; + while(++sheep > 0); + bool sleep = true; + return sheep; +}*/ +//file abcdefghi kette2 2 +int main(int argc, char *argv[]) { + if(argc != 4) + return 1; + if(strlen(argv[1]) < atoi(argv[3])+strlen(argv[2])) + return 2; + int offset = atoi(argv[3])*-1; /* Kann man sich auch Schenken */ + for(int i=0;i= 0 && offset+i < strlen(argv[2])) + argv[1][i] = argv[2][offset+i]; + if(offset+i >= 0 && offset+i >= strlen(argv[2])) + break; + } + printf("%s",argv[1]); + getchar(); +} \ No newline at end of file