calc/index.md

30 lines
1.0 KiB
Markdown
Raw Normal View History

2020-09-30 15:43:49 -05:00
# David Calc
2020-09-30 15:43:19 -05:00
## David's Calculator for the command line!
2020-09-30 15:48:18 -05:00
### About
2020-12-15 13:56:47 -06:00
Welcome to the website for David Calc.
2020-09-30 15:46:55 -05:00
2021-02-08 15:55:56 -06:00
### Downloads
Downloads are available at [DavidDGTNTDL](https://daviddgtnt.github.io/dl)
2020-12-15 13:56:47 -06:00
### Features planned
* Divide by zero protection
2021-02-08 15:40:14 -06:00
* GUI with Visual C++
### File explanation:
2021-02-08 15:55:56 -06:00
terminal.cpp: Main file for all operating systems.
windows-desktop.cpp: Windows Desktop file, only works on Windows / DOS and made to run with a double-click on the desktop.
2021-02-08 15:40:14 -06:00
Dockerfile: File to build the docker image.
### How to build
2021-02-08 15:55:56 -06:00
#### 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 main.cpp. If you are going to use your file manager / the desktop, use windows-desktop.cpp.
2021-02-08 15:40:14 -06:00
2021-02-08 15:55:56 -06:00
`g++ <main.cpp / windows-desktop.cpp> -o calc.exe`
2021-02-08 15:40:14 -06:00
To run it, type `calc` at the prompt, or double-click the executable.
2021-02-08 15:55:56 -06:00
#### Linux / macOS:
`g++ main.cpp -o calc`
2021-02-08 15:40:14 -06:00
To run it, type `./calc` at the prompt, or double-click the executable.