Skip to content

zichengl/Polynomial-Addition-Program

Repository files navigation

g++ -std=c++11 add.cpp io.cpp mod.cpp multiplication.cpp operation.cpp transfer.cpp The executable will consume two filenames from the command line and will print to stdout the sum of the two polynomials found in those files. These polynomials will be stored in the following format: 5 9 8 7 6 5 represents 9x^4 + 8x^3 + 7x^2 + 6x^1 + 5. More formally there will be a single line which begins with an integer that represents the length of the polynomial (the degree plus 1) followed by white-space then white-space separated coefficients in descending order. The program expects the highest-degree term to be non-zero. Example: 3 1 0 2 plus 5 1 0 0 1 2 should display to screen 5 1 0 1 1 4.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages