diff options
| author | Alee <Alee14498@gmail.com> | 2019-01-27 22:17:10 -0500 |
|---|---|---|
| committer | Alee <Alee14498@gmail.com> | 2019-01-27 22:17:10 -0500 |
| commit | ab3bc9a86613d9aca5da531595394b83c94669ff (patch) | |
| tree | 80379a2afd007bb92c7c5fc50694d32d958ef60f | |
| parent | 71c43d4c407e05cfabbcecfcb4d1e3625bdbdd25 (diff) | |
| download | Project-Xeon-ab3bc9a86613d9aca5da531595394b83c94669ff.tar.gz Project-Xeon-ab3bc9a86613d9aca5da531595394b83c94669ff.tar.bz2 Project-Xeon-ab3bc9a86613d9aca5da531595394b83c94669ff.zip | |
Things
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | .vscode/c_cpp_properties.json | 21 | ||||
| -rw-r--r-- | .vscode/settings.json | 44 | ||||
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | build.bat | 4 | ||||
| -rw-r--r-- | main.cpp | 28 | ||||
| -rw-r--r-- | run.bat | 4 |
7 files changed, 100 insertions, 7 deletions
@@ -1 +1 @@ -a.exe
\ No newline at end of file +out/game.exe diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..180ed08 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,21 @@ +{ + "configurations": [ + { + "name": "Win32", + "includePath": [ + "${workspaceFolder}/**" + ], + "defines": [ + "_DEBUG", + "UNICODE", + "_UNICODE" + ], + "windowsSdkVersion": "10.0.17763.0", + "compilerPath": "D:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/MSVC/14.20.27027/bin/Hostx64/x64/cl.exe", + "cStandard": "c11", + "cppStandard": "c++17", + "intelliSenseMode": "msvc-x64" + } + ], + "version": 4 +}
\ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..19c4f2d --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,44 @@ +{ + "files.associations": { + "iostream": "cpp", + "cctype": "cpp", + "cmath": "cpp", + "cstddef": "cpp", + "cstdint": "cpp", + "cstdio": "cpp", + "cstdlib": "cpp", + "cstring": "cpp", + "cwchar": "cpp", + "exception": "cpp", + "fstream": "cpp", + "initializer_list": "cpp", + "ios": "cpp", + "iosfwd": "cpp", + "istream": "cpp", + "limits": "cpp", + "memory": "cpp", + "new": "cpp", + "ostream": "cpp", + "stdexcept": "cpp", + "streambuf": "cpp", + "string": "cpp", + "system_error": "cpp", + "tuple": "cpp", + "type_traits": "cpp", + "typeinfo": "cpp", + "utility": "cpp", + "vector": "cpp", + "xfacet": "cpp", + "xiosbase": "cpp", + "xlocale": "cpp", + "xlocinfo": "cpp", + "xlocnum": "cpp", + "xmemory": "cpp", + "xmemory0": "cpp", + "xstddef": "cpp", + "xstring": "cpp", + "xtr1common": "cpp", + "xutility": "cpp" + }, + "C_Cpp.errorSquiggles": "Enabled" +}
\ No newline at end of file @@ -1,2 +1,6 @@ # Project Xeon A text-based game made in C++ + +REQUIREMENTS TO COMPILE: + +- A C++ compiler (Such as g++)
\ No newline at end of file @@ -1,7 +1,7 @@ @echo off title Building C++ Program echo Building Program... -del a.exe -g++ -g main.cpp +mkdir out +g++ -g main.cpp -o out/game.exe echo Building Complete! pause>nul
\ No newline at end of file @@ -1,10 +1,30 @@ #include <iostream> - -using namespace std; +#include <vector> +#include <string> +#include <fstream> + +void displayMenu() +{ + +} int main() { - cout << "Hello World!" << endl; - system("pause"); + int age; + int year = 2019; + std::string guy; + int mainChoice; + + std::cout << "Welcome to Project Xeon! A text-based game made in C++!" << std::endl; + std::cout << "Please enter your name..." << std::endl; + std::getline(std::cin, guy); + std::cout << "Hello "<< guy << "!" << std::endl; + + age = 0; + age = age+1; + year = year+1; + + std::cout << "You are now " << age << " and it's " << year << std::endl; + return 0; }
\ No newline at end of file @@ -0,0 +1,4 @@ +@echo off +echo Running Game +out\game.exe +pause>nul
\ No newline at end of file |
