Skip to content

Commit

Permalink
Did some work
Browse files Browse the repository at this point in the history
23.07.13 attempted calculating pi, gave up. Finished Fibonacci
calculator
  • Loading branch information
warmair committed Jul 23, 2013
1 parent 5ee3d42 commit e58a032
Show file tree
Hide file tree
Showing 90 changed files with 731 additions and 622 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions Numbers/Fibonacci Sequence Calculator/Debug/Fizz_Buzz.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fibonacci_sequence_calculator.exe
pause
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Express 2012 for Windows Desktop
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Fibonacci Sequence Calculator", "Fibonacci Sequence Calculator\Fibonacci Sequence Calculator.vcxproj", "{3D04FD7F-276E-476E-B5A2-2024F5C2532E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3D04FD7F-276E-476E-B5A2-2024F5C2532E}.Debug|Win32.ActiveCfg = Debug|Win32
{3D04FD7F-276E-476E-B5A2-2024F5C2532E}.Debug|Win32.Build.0 = Debug|Win32
{3D04FD7F-276E-476E-B5A2-2024F5C2532E}.Release|Win32.ActiveCfg = Release|Win32
{3D04FD7F-276E-476E-B5A2-2024F5C2532E}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#v4.0:v110:false
Debug|Win32|C:\Users\Simon\Documents\GitHub\Projects\Numbers\Fibonacci Sequence Calculator\|
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Build started 23/07/2013 06:29:20.
1>Project "C:\Users\Simon\Documents\GitHub\Projects\Numbers\Fibonacci Sequence Calculator\Fibonacci Sequence Calculator\Fibonacci Sequence Calculator.vcxproj" on node 2 (Build target(s)).
1>ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /sdl /Od /Oy- /D _MBCS /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc110.pdb" /Gd /TP /analyze- /errorReport:prompt Source.cpp
Source.cpp
Link:
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"C:\Users\Simon\Documents\GitHub\Projects\Numbers\Fibonacci Sequence Calculator\Debug\Fibonacci Sequence Calculator.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:\Users\Simon\Documents\GitHub\Projects\Numbers\Fibonacci Sequence Calculator\Debug\Fibonacci Sequence Calculator.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\Simon\Documents\GitHub\Projects\Numbers\Fibonacci Sequence Calculator\Debug\Fibonacci Sequence Calculator.lib" /MACHINE:X86 Debug\Source.obj
Fibonacci Sequence Calculator.vcxproj -> C:\Users\Simon\Documents\GitHub\Projects\Numbers\Fibonacci Sequence Calculator\Debug\Fibonacci Sequence Calculator.exe
1>Done Building Project "C:\Users\Simon\Documents\GitHub\Projects\Numbers\Fibonacci Sequence Calculator\Fibonacci Sequence Calculator\Fibonacci Sequence Calculator.vcxproj" (Build target(s)).

Build succeeded.

Time Elapsed 00:00:01.28
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{3D04FD7F-276E-476E-B5A2-2024F5C2532E}</ProjectGuid>
<RootNamespace>FibonacciSequenceCalculator</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v110</PlatformToolset>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v110</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup />
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Console</SubSystem>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="Source.cpp" />
</ItemGroup>
<ItemGroup>
<Text Include="Pseudocode.txt" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Source.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Text Include="Pseudocode.txt">
<Filter>Resource Files</Filter>
</Text>
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
ask amount of digits
calculate to that many digits
finish

two previous terms added together.

1 1 2 3 5 8 13 21 34 55 89

____

int getint()

vector<int> fibonaci()

x = 0
y = 1

out = x + (y - x)
out= 1, x = 1
out =
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
// Calculating the fibonacci sequence to n digits
//Simon Barlow 27.07.13

#include <cstdio>
#include <iostream>
#include <limits>
#include <vector>

using namespace std;

int getanint();
void fibonacci(int length);

int main()
{
int length = getanint();
fibonacci(length);

return 0;

}

int getanint()
{
int value;
cout << "what do you want?\n";
cin >> value;
cout << "OK!\n\n";

while(value < 0 )
{
cout << "that value is invalid\nPlease give a new value:"<< endl;

cin >> value;
}

return value;
}

void fibonacci(int length)
{
int x = 0;
int y = 1;
vector<int> sequence;
sequence.push_back(x);
sequence.push_back(y);

for (int i=0; i != length; i++)
{
x = sequence[i] + sequence[i+1];
cout << x <<endl;
sequence.push_back(x);
}

}

Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions Numbers/Find Pi to the nth Digit/Debug/Fizz_Buzz.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Find_Pi_to_the_nth_Digit.exe
pause
Binary file not shown.
20 changes: 20 additions & 0 deletions Numbers/Find Pi to the nth Digit/Find Pi to the nth Digit.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Express 2012 for Windows Desktop
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Find Pi to the nth Digit", "Find Pi to the nth Digit\Find Pi to the nth Digit.vcxproj", "{73F3EE9D-7412-42EF-BD98-D32635416C0D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{73F3EE9D-7412-42EF-BD98-D32635416C0D}.Debug|Win32.ActiveCfg = Debug|Win32
{73F3EE9D-7412-42EF-BD98-D32635416C0D}.Debug|Win32.Build.0 = Debug|Win32
{73F3EE9D-7412-42EF-BD98-D32635416C0D}.Release|Win32.ActiveCfg = Release|Win32
{73F3EE9D-7412-42EF-BD98-D32635416C0D}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#v4.0:v110:false
Debug|Win32|C:\Users\Simon\Documents\GitHub\Projects\Numbers\Find Pi to the nth Digit\|
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Build started 23/07/2013 04:45:11.
1>Project "C:\Users\Simon\Documents\GitHub\Projects\Numbers\Find Pi to the nth Digit\Find Pi to the nth Digit\Find Pi to the nth Digit.vcxproj" on node 2 (Build target(s)).
1>ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /sdl /Od /Oy- /D _MBCS /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc110.pdb" /Gd /TP /analyze- /errorReport:prompt Source.cpp
Source.cpp
Link:
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"C:\Users\Simon\Documents\GitHub\Projects\Numbers\Find Pi to the nth Digit\Debug\Find Pi to the nth Digit.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:\Users\Simon\Documents\GitHub\Projects\Numbers\Find Pi to the nth Digit\Debug\Find Pi to the nth Digit.pdb" /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\Simon\Documents\GitHub\Projects\Numbers\Find Pi to the nth Digit\Debug\Find Pi to the nth Digit.lib" /MACHINE:X86 Debug\Source.obj
Find Pi to the nth Digit.vcxproj -> C:\Users\Simon\Documents\GitHub\Projects\Numbers\Find Pi to the nth Digit\Debug\Find Pi to the nth Digit.exe
1>Done Building Project "C:\Users\Simon\Documents\GitHub\Projects\Numbers\Find Pi to the nth Digit\Find Pi to the nth Digit\Find Pi to the nth Digit.vcxproj" (Build target(s)).

Build succeeded.

Time Elapsed 00:00:01.21
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Loading

0 comments on commit e58a032

Please sign in to comment.