Solution of quadratic equation in C++ language.
The principle is on my website.
All operating systems with a C++ compiler installed.
You can get the source code from github by using git-for-windows or download the zip package.
Recommand MSVC Build Tools as your C++ compiler on Windows.
Open Developer PowerShell for VS 2022
in Start menu, and switch to the path to source code.
cd cpp-quadratic-equation/src
cl main.cpp
.\main.exe
Using the package manager of this distribution to get clang
and make
:
## Arch Linux/Manjaro
sudo pacman -S clang make
## Debian/Ubuntu and derivative distribution
sudo apt install clang make
## Fedora/RHEL/CentOS and derivative distribution
sudo dnf in clang make
## openSUSE/SUSE Linux Enterprise
sudo zypper in clang make
## Gentoo Linux
sudo emerge -av clang make
## This may take a long time journey because clang & LLVM is a large project
## It depending on your machine's performance.
Get the source code by using Git or download the zip.
git clone https://github.com/acidec/cpp-quadratic-equation.git
It's time to run the program!
cd cpp-quadratic-equation
make
make run
You should get the Command Line Tools(CLT) for Xcode. It provides Apple Clang
and make
commands.
xcode-select --install
Get the source code by using Git or download the zip.
git clone https://github.com/acidec/cpp-quadratic-equation.git
It's time to run the program!
cd cpp-quadratic-equation
make
make run
Unix like operating system required.
cd cpp-quadratic-equation
make clean