summaryrefslogtreecommitdiff
path: root/PlaygroundCpp
diff options
context:
space:
mode:
authorHaidong Ji2018-08-06 18:19:38 -0500
committerHaidong Ji2018-08-06 18:19:38 -0500
commit2d9b3e3e4cd41dc80e4759b07fd18b89477be2cb (patch)
tree9e1d9f7be8d496141ce791ca768c745b8dee3b28 /PlaygroundCpp
Initial commit.
Diffstat (limited to 'PlaygroundCpp')
-rw-r--r--PlaygroundCpp/.cproject246
-rw-r--r--PlaygroundCpp/.gitignore1
-rw-r--r--PlaygroundCpp/.project27
-rw-r--r--PlaygroundCpp/.settings/language.settings.xml48
-rw-r--r--PlaygroundCpp/Sources/Playground.cpp13
5 files changed, 335 insertions, 0 deletions
diff --git a/PlaygroundCpp/.cproject b/PlaygroundCpp/.cproject
new file mode 100644
index 0000000..ea3a3d9
--- /dev/null
+++ b/PlaygroundCpp/.cproject
@@ -0,0 +1,246 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
+
+ <storageModule moduleId="org.eclipse.cdt.core.settings">
+
+ <cconfiguration id="cdt.managedbuild.config.gnu.exe.debug.854788432">
+
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.gnu.exe.debug.854788432" moduleId="org.eclipse.cdt.core.settings" name="Debug">
+
+ <externalSettings/>
+
+ <extensions>
+
+ <extension id="org.eclipse.cdt.core.GNU_ELF" point="org.eclipse.cdt.core.BinaryParser"/>
+
+ <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+
+ <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+
+ </extensions>
+
+ </storageModule>
+
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+
+ <configuration artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.gnu.exe.debug.854788432" name="Debug" parent="cdt.managedbuild.config.gnu.exe.debug">
+
+ <folderInfo id="cdt.managedbuild.config.gnu.exe.debug.854788432." name="/" resourcePath="">
+
+ <toolChain id="cdt.managedbuild.toolchain.gnu.exe.debug.707029799" name="Linux GCC" superClass="cdt.managedbuild.toolchain.gnu.exe.debug">
+
+ <targetPlatform id="cdt.managedbuild.target.gnu.platform.exe.debug.116540349" name="Debug Platform" superClass="cdt.managedbuild.target.gnu.platform.exe.debug"/>
+
+ <builder buildPath="${workspace_loc:/PlaygroundCpp}/Debug" id="cdt.managedbuild.target.gnu.builder.exe.debug.1843014306" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="cdt.managedbuild.target.gnu.builder.exe.debug"/>
+
+ <tool id="cdt.managedbuild.tool.gnu.archiver.base.2083142981" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.base"/>
+
+ <tool id="cdt.managedbuild.tool.gnu.cpp.compiler.exe.debug.812073924" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.exe.debug">
+
+ <option id="gnu.cpp.compiler.exe.debug.option.optimization.level.639997264" name="Optimization Level" superClass="gnu.cpp.compiler.exe.debug.option.optimization.level" useByScannerDiscovery="false" value="gnu.cpp.compiler.optimization.level.none" valueType="enumerated"/>
+
+ <option id="gnu.cpp.compiler.exe.debug.option.debugging.level.431750314" name="Debug Level" superClass="gnu.cpp.compiler.exe.debug.option.debugging.level" useByScannerDiscovery="false" value="gnu.cpp.compiler.debugging.level.max" valueType="enumerated"/>
+
+ <inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1870505499" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
+
+ </tool>
+
+ <tool id="cdt.managedbuild.tool.gnu.c.compiler.exe.debug.868207749" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.exe.debug">
+
+ <option defaultValue="gnu.c.optimization.level.none" id="gnu.c.compiler.exe.debug.option.optimization.level.2108681528" name="Optimization Level" superClass="gnu.c.compiler.exe.debug.option.optimization.level" useByScannerDiscovery="false" valueType="enumerated"/>
+
+ <option id="gnu.c.compiler.exe.debug.option.debugging.level.561344640" name="Debug Level" superClass="gnu.c.compiler.exe.debug.option.debugging.level" useByScannerDiscovery="false" value="gnu.c.debugging.level.max" valueType="enumerated"/>
+
+ <inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.1371005084" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
+
+ </tool>
+
+ <tool id="cdt.managedbuild.tool.gnu.c.linker.exe.debug.1306453908" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.exe.debug"/>
+
+ <tool id="cdt.managedbuild.tool.gnu.cpp.linker.exe.debug.1593738472" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.exe.debug">
+
+ <inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.1967757968" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
+
+ <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
+
+ <additionalInput kind="additionalinput" paths="$(LIBS)"/>
+
+ </inputType>
+
+ </tool>
+
+ <tool id="cdt.managedbuild.tool.gnu.assembler.exe.debug.183585801" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.exe.debug">
+
+ <inputType id="cdt.managedbuild.tool.gnu.assembler.input.641163583" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
+
+ </tool>
+
+ </toolChain>
+
+ </folderInfo>
+
+ <sourceEntries>
+
+ <entry excluding="Sources" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
+
+ <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Sources"/>
+
+ </sourceEntries>
+
+ </configuration>
+
+ </storageModule>
+
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+
+ </cconfiguration>
+
+ <cconfiguration id="cdt.managedbuild.config.gnu.exe.release.1819242823">
+
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.gnu.exe.release.1819242823" moduleId="org.eclipse.cdt.core.settings" name="Release">
+
+ <externalSettings/>
+
+ <extensions>
+
+ <extension id="org.eclipse.cdt.core.GNU_ELF" point="org.eclipse.cdt.core.BinaryParser"/>
+
+ <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+
+ <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+
+ </extensions>
+
+ </storageModule>
+
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+
+ <configuration artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.gnu.exe.release.1819242823" name="Release" parent="cdt.managedbuild.config.gnu.exe.release">
+
+ <folderInfo id="cdt.managedbuild.config.gnu.exe.release.1819242823." name="/" resourcePath="">
+
+ <toolChain id="cdt.managedbuild.toolchain.gnu.exe.release.1654992273" name="Linux GCC" superClass="cdt.managedbuild.toolchain.gnu.exe.release">
+
+ <targetPlatform id="cdt.managedbuild.target.gnu.platform.exe.release.500125802" name="Debug Platform" superClass="cdt.managedbuild.target.gnu.platform.exe.release"/>
+
+ <builder buildPath="${workspace_loc:/PlaygroundCpp}/Release" id="cdt.managedbuild.target.gnu.builder.exe.release.340698914" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="cdt.managedbuild.target.gnu.builder.exe.release"/>
+
+ <tool id="cdt.managedbuild.tool.gnu.archiver.base.528694398" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.base"/>
+
+ <tool id="cdt.managedbuild.tool.gnu.cpp.compiler.exe.release.1124698867" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.exe.release">
+
+ <option id="gnu.cpp.compiler.exe.release.option.optimization.level.1708013044" name="Optimization Level" superClass="gnu.cpp.compiler.exe.release.option.optimization.level" useByScannerDiscovery="false" value="gnu.cpp.compiler.optimization.level.most" valueType="enumerated"/>
+
+ <option id="gnu.cpp.compiler.exe.release.option.debugging.level.1937224406" name="Debug Level" superClass="gnu.cpp.compiler.exe.release.option.debugging.level" useByScannerDiscovery="false" value="gnu.cpp.compiler.debugging.level.none" valueType="enumerated"/>
+
+ <inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1112690290" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
+
+ </tool>
+
+ <tool id="cdt.managedbuild.tool.gnu.c.compiler.exe.release.844310552" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.exe.release">
+
+ <option defaultValue="gnu.c.optimization.level.most" id="gnu.c.compiler.exe.release.option.optimization.level.1779597296" name="Optimization Level" superClass="gnu.c.compiler.exe.release.option.optimization.level" useByScannerDiscovery="false" valueType="enumerated"/>
+
+ <option id="gnu.c.compiler.exe.release.option.debugging.level.766030980" name="Debug Level" superClass="gnu.c.compiler.exe.release.option.debugging.level" useByScannerDiscovery="false" value="gnu.c.debugging.level.none" valueType="enumerated"/>
+
+ <inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.496248817" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
+
+ </tool>
+
+ <tool id="cdt.managedbuild.tool.gnu.c.linker.exe.release.1355856436" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.exe.release"/>
+
+ <tool id="cdt.managedbuild.tool.gnu.cpp.linker.exe.release.1951039164" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.exe.release">
+
+ <inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.1750963769" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
+
+ <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
+
+ <additionalInput kind="additionalinput" paths="$(LIBS)"/>
+
+ </inputType>
+
+ </tool>
+
+ <tool id="cdt.managedbuild.tool.gnu.assembler.exe.release.238089210" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.exe.release">
+
+ <inputType id="cdt.managedbuild.tool.gnu.assembler.input.1253971676" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
+
+ </tool>
+
+ </toolChain>
+
+ </folderInfo>
+
+ <sourceEntries>
+
+ <entry excluding="Sources" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
+
+ <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="Sources"/>
+
+ </sourceEntries>
+
+ </configuration>
+
+ </storageModule>
+
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+
+ </cconfiguration>
+
+ </storageModule>
+
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+
+ <project id="PlaygroundCpp.cdt.managedbuild.target.gnu.exe.2094636372" name="Executable" projectType="cdt.managedbuild.target.gnu.exe"/>
+
+ </storageModule>
+
+ <storageModule moduleId="scannerConfiguration">
+
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
+
+ <scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.exe.debug.854788432;cdt.managedbuild.config.gnu.exe.debug.854788432.;cdt.managedbuild.tool.gnu.cpp.compiler.exe.debug.812073924;cdt.managedbuild.tool.gnu.cpp.compiler.input.1870505499">
+
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
+
+ </scannerConfigBuildInfo>
+
+ <scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.exe.release.1819242823;cdt.managedbuild.config.gnu.exe.release.1819242823.;cdt.managedbuild.tool.gnu.cpp.compiler.exe.release.1124698867;cdt.managedbuild.tool.gnu.cpp.compiler.input.1112690290">
+
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
+
+ </scannerConfigBuildInfo>
+
+ <scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.exe.release.1819242823;cdt.managedbuild.config.gnu.exe.release.1819242823.;cdt.managedbuild.tool.gnu.c.compiler.exe.release.844310552;cdt.managedbuild.tool.gnu.c.compiler.input.496248817">
+
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
+
+ </scannerConfigBuildInfo>
+
+ <scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.exe.debug.854788432;cdt.managedbuild.config.gnu.exe.debug.854788432.;cdt.managedbuild.tool.gnu.c.compiler.exe.debug.868207749;cdt.managedbuild.tool.gnu.c.compiler.input.1371005084">
+
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
+
+ </scannerConfigBuildInfo>
+
+ </storageModule>
+
+ <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
+
+ <storageModule moduleId="refreshScope"/>
+
+ <storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
+
+</cproject>
diff --git a/PlaygroundCpp/.gitignore b/PlaygroundCpp/.gitignore
new file mode 100644
index 0000000..3df573f
--- /dev/null
+++ b/PlaygroundCpp/.gitignore
@@ -0,0 +1 @@
+/Debug/
diff --git a/PlaygroundCpp/.project b/PlaygroundCpp/.project
new file mode 100644
index 0000000..c294861
--- /dev/null
+++ b/PlaygroundCpp/.project
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>PlaygroundCpp</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+ <triggers>clean,full,incremental,</triggers>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
+ <triggers>full,incremental,</triggers>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.cdt.core.cnature</nature>
+ <nature>org.eclipse.cdt.core.ccnature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
+ </natures>
+</projectDescription>
diff --git a/PlaygroundCpp/.settings/language.settings.xml b/PlaygroundCpp/.settings/language.settings.xml
new file mode 100644
index 0000000..54c9fee
--- /dev/null
+++ b/PlaygroundCpp/.settings/language.settings.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<project>
+
+ <configuration id="cdt.managedbuild.config.gnu.exe.debug.854788432" name="Debug">
+
+ <extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
+
+ <provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
+
+ <provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
+
+ <provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
+
+ <provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="-939556362312027581" id="org.eclipse.cdt.managedbuilder.core.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
+
+ <language-scope id="org.eclipse.cdt.core.gcc"/>
+
+ <language-scope id="org.eclipse.cdt.core.g++"/>
+
+ </provider>
+
+ </extension>
+
+ </configuration>
+
+ <configuration id="cdt.managedbuild.config.gnu.exe.release.1819242823" name="Release">
+
+ <extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
+
+ <provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
+
+ <provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
+
+ <provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
+
+ <provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="-939556362312027581" id="org.eclipse.cdt.managedbuilder.core.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
+
+ <language-scope id="org.eclipse.cdt.core.gcc"/>
+
+ <language-scope id="org.eclipse.cdt.core.g++"/>
+
+ </provider>
+
+ </extension>
+
+ </configuration>
+
+</project>
diff --git a/PlaygroundCpp/Sources/Playground.cpp b/PlaygroundCpp/Sources/Playground.cpp
new file mode 100644
index 0000000..37b59f9
--- /dev/null
+++ b/PlaygroundCpp/Sources/Playground.cpp
@@ -0,0 +1,13 @@
+#include <iostream>
+
+int add(int a, int b) {
+ return a + b;
+}
+int main() {
+ int a = 0;
+ int b = 0;
+ std::cin >> a;
+ std::cin >> b;
+ std::cout << add(a, b);
+ return 0;
+}