diff --git a/Project2.sln b/Project2.sln new file mode 100644 index 0000000..fba2b98 --- /dev/null +++ b/Project2.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.9.34622.214 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Project2", "Project2\Project2.vcxproj", "{E19A9D83-0DEF-431E-A2DB-DA484DE00238}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E19A9D83-0DEF-431E-A2DB-DA484DE00238}.Debug|x64.ActiveCfg = Debug|x64 + {E19A9D83-0DEF-431E-A2DB-DA484DE00238}.Debug|x64.Build.0 = Debug|x64 + {E19A9D83-0DEF-431E-A2DB-DA484DE00238}.Debug|x86.ActiveCfg = Debug|Win32 + {E19A9D83-0DEF-431E-A2DB-DA484DE00238}.Debug|x86.Build.0 = Debug|Win32 + {E19A9D83-0DEF-431E-A2DB-DA484DE00238}.Release|x64.ActiveCfg = Release|x64 + {E19A9D83-0DEF-431E-A2DB-DA484DE00238}.Release|x64.Build.0 = Release|x64 + {E19A9D83-0DEF-431E-A2DB-DA484DE00238}.Release|x86.ActiveCfg = Release|Win32 + {E19A9D83-0DEF-431E-A2DB-DA484DE00238}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {CCFC7E4D-7631-4927-BF59-011EDF130FFE} + EndGlobalSection +EndGlobal diff --git a/Project2/2.cpp b/Project2/2.cpp new file mode 100644 index 0000000..4b8c059 --- /dev/null +++ b/Project2/2.cpp @@ -0,0 +1,24 @@ +// CalculatorTutorial.cpp : This file contains the 'main' function. Program execution begins and ends there. +// + +#include + +using namespace std; + +int main() +{ + cout << "Calculator Console Application" << endl << endl; + cout << "Please enter the operation to perform. Format: a+b | a-b | a*b | a/b" + << endl; + return 0; +} + +// Run program: Ctrl + F5 or Debug > Start Without Debugging menu +// Debug program: F5 or Debug > Start Debugging menu +// Tips for Getting Started: +// 1. Use the Solution Explorer window to add/manage files +// 2. Use the Team Explorer window to connect to source control +// 3. Use the Output window to see build output and other messages +// 4. Use the Error List window to view errors +// 5. Go to Project > Add New Item to create new code files, or Project > Add Existing Item to add existing code files to the project +// 6. In the future, to open this project again, go to File > Open > Project and select the .sln file \ No newline at end of file diff --git a/Project2/Caluculator.cpp b/Project2/Caluculator.cpp new file mode 100644 index 0000000..dce186c --- /dev/null +++ b/Project2/Caluculator.cpp @@ -0,0 +1,30 @@ +// CalculatorTutorial.cpp : This file contains the 'main' function. Program execution begins and ends there. +// + +#include +#include "Caluculator.h" + +using namespace std; + +int main() +{ + cout << "Calculator Console Application" << endl << endl; + cout << "Please enter the operation to perform. Format: a+b | a-b | a*b | a/b" + << endl; + return 0; +} + +// Run program: Ctrl + F5 or Debug > Start Without Debugging menu +// Debug program: F5 or Debug > Start Debugging menu +// Tips for Getting Started: +// 1. Use the Solution Explorer window to add/manage files +// 2. Use the Team Explorer window to connect to source control +// 3. Use the Output window to see build output and other messages +// 4. Use the Error List window to view errors +// 5. Go to Project > Add New Item to create new code files, or Project > Add Existing Item to add existing code files to the project +// 6. In the future, to open this project again, go to File > Open > Project and select the .sln file + +double Calculator::Calculate(double x, char oper, double y) +{ + return 0.0; +} diff --git a/Project2/Caluculator.h b/Project2/Caluculator.h new file mode 100644 index 0000000..8b97300 --- /dev/null +++ b/Project2/Caluculator.h @@ -0,0 +1,6 @@ +#pragma once +class Calculator +{ +public: + double Calculate(double x, char oper, double y); +}; \ No newline at end of file diff --git a/Project2/Project2.vcxproj b/Project2/Project2.vcxproj new file mode 100644 index 0000000..e4e7b6f --- /dev/null +++ b/Project2/Project2.vcxproj @@ -0,0 +1,139 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {e19a9d83-0def-431e-a2db-da484de00238} + Project2 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + + \ No newline at end of file diff --git a/Project2/Project2.vcxproj.filters b/Project2/Project2.vcxproj.filters new file mode 100644 index 0000000..2287930 --- /dev/null +++ b/Project2/Project2.vcxproj.filters @@ -0,0 +1,30 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;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 + + + + + ソース ファイル + + + ソース ファイル + + + + + ヘッダー ファイル + + + \ No newline at end of file