Update index.md

gh-pages
DavidDGTNTSchool 2021-02-08 15:55:56 -06:00 committed by GitHub
parent 9508c7f149
commit 0c08f1f05e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 10 deletions

View File

@ -4,27 +4,26 @@
### About ### About
Welcome to the website for David Calc. Welcome to the website for David Calc.
#### [Windows Command Prompt](https://github.com/daviddgtnt/calc/releases/download/1.0/calc.exe) ### Downloads
#### [Docker](https://hub.docker.com/r/dugo3number2/calc) Downloads are available at [DavidDGTNTDL](https://daviddgtnt.github.io/dl)
### Features planned ### Features planned
* Divide by zero protection * Divide by zero protection
* GUI with Visual C++ * GUI with Visual C++
### File explanation: ### File explanation:
main.cpp: Version for running from the desktop terminal.cpp: Main file for all operating systems.
terminal.cpp: Version for running from the Command Prompt / Terminal (naming depends on OS) windows-desktop.cpp: Windows Desktop file, only works on Windows / DOS and made to run with a double-click on the desktop.
Dockerfile: File to build the docker image. Dockerfile: File to build the docker image.
### How to build ### How to build
#### Regular #### Windows
First, ask this question. Are you going to double-click this in the file manager / on the desktop or type `calc` in the command line to run it? If you are gonna use the command line, use terminal.cpp. If you are going to use your file manager / the desktop, use main.cpp. First, ask this question. Are you going to double-click this in the file manager / on the desktop or type `calc` in the command line to run it? If you are gonna use the command line, use main.cpp. If you are going to use your file manager / the desktop, use windows-desktop.cpp.
Windows: `g++ <main.cpp / windows-desktop.cpp> -o calc.exe`
`g++ <main.cpp / terminal.cpp> -o calc.exe`
To run it, type `calc` at the prompt, or double-click the executable. To run it, type `calc` at the prompt, or double-click the executable.
Linux / macOS: #### Linux / macOS:
`g++ <main.cpp / terminal.cpp> -o calc` `g++ main.cpp -o calc`
To run it, type `./calc` at the prompt, or double-click the executable. To run it, type `./calc` at the prompt, or double-click the executable.