Skip to content

This is a console application for solving quadratic equations written in C++

License

Notifications You must be signed in to change notification settings

andreykurzantsev/equation-solver-git-basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solver of quadratic equations

This is a console application for solving quadratic equations written in C++

Description

This program has 2 modes of operation:

  • Interactive
  • Non-Interactive The program is able to solve quadratic equations of any complexity.

Compilation and using

  • To run the program interactively, compile the app.cpp file. And run the received .exe file.

For example:

>g++ app.cpp
>./a.exe
  • To use the non-interactive mode, you must also compile the code, and then specify the path to the file with coefficients as a command line argument. The file must have a .txt extension. The contents of the file with coefficients should look like 2\s1\s-3\n, where '\s' is a space and '\n' is a newline. You can use floating point numbers and negative values as coefficients. The dot '.' must be used as a separator. If you fill out the file differently, you will receive an error message. You can use my file: coefs.txt or create your own.

For example:

>g++ app.cpp
>./a.exe C:\directory\projectspace\coefs.txt

Enjoy using


Revert commit

About

This is a console application for solving quadratic equations written in C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages