Skip to content

acidec/cpp-quadratic-equation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using C++ to Realize the Solving of Unary Quadratic Equation

Solution of quadratic equation in C++ language.

The principle is on my website.

Supported operating system

All operating systems with a C++ compiler installed.

Build and run

Windows (Not recommanded)

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

GNU/Linux

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

macOS

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

Clean

Unix like operating system required.

cd cpp-quadratic-equation
make clean

About

Solution of quadratic equation in C++ language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published