calc/index.md

29 lines
1.1 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
2021-06-16 15:17:42 -05:00
Downloads are available at [the GitHub releases page](https://daviddgtnt.github.io/calc/releases);
2020-12-15 13:56:47 -06:00
### Features planned
2021-06-16 15:17:42 -05:00
* None currently planned
2021-02-08 15:40:14 -06:00
### File explanation:
2021-06-16 15:17:42 -05:00
main.cpp: Main file for all operating systems (Version 2.0).
windows-desktop.cpp: Windows Desktop file, only works on Windows / DOS and made to run with a double-click on the desktop. (Version 1.0)
Dockerfile: File to build the docker image (Version 2.0).
2021-02-08 15:40:14 -06:00
### How to build
2021-02-08 15:55:56 -06:00
#### Windows
2021-06-16 15:17:42 -05:00
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? Keep in mind the one for the desktop is still version 1.0. 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.