aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlee <Alee14498@gmail.com>2019-01-27 22:17:10 -0500
committerAlee <Alee14498@gmail.com>2019-01-27 22:17:10 -0500
commitab3bc9a86613d9aca5da531595394b83c94669ff (patch)
tree80379a2afd007bb92c7c5fc50694d32d958ef60f
parent71c43d4c407e05cfabbcecfcb4d1e3625bdbdd25 (diff)
downloadProject-Xeon-ab3bc9a86613d9aca5da531595394b83c94669ff.tar.gz
Project-Xeon-ab3bc9a86613d9aca5da531595394b83c94669ff.tar.bz2
Project-Xeon-ab3bc9a86613d9aca5da531595394b83c94669ff.zip
Things
-rw-r--r--.gitignore2
-rw-r--r--.vscode/c_cpp_properties.json21
-rw-r--r--.vscode/settings.json44
-rw-r--r--README.md4
-rw-r--r--build.bat4
-rw-r--r--main.cpp28
-rw-r--r--run.bat4
7 files changed, 100 insertions, 7 deletions
diff --git a/.gitignore b/.gitignore
index 3110669..470195d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
diff --git a/README.md b/README.md
index 4d888a6..f0d536c 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/build.bat b/build.bat
index fbd2e82..f268c28 100644
--- a/build.bat
+++ b/build.bat
@@ -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
diff --git a/main.cpp b/main.cpp
index 95cc365..9c27f20 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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
diff --git a/run.bat b/run.bat
new file mode 100644
index 0000000..b54e52a
--- /dev/null
+++ b/run.bat
@@ -0,0 +1,4 @@
+@echo off
+echo Running Game
+out\game.exe
+pause>nul \ No newline at end of file