relCalculator.cpp
// A utility function to print a polynomial
A utility function to print a polynomial
A utility function to print a polynomial
void printPoly(vector<int> poly)
{
    cout << "Poly" << endl;
    int n = poly.size();
    for (int i=0; i<n; i++)
    {
        cout << poly[i];
        if (i != 0)
            cout << "x^" << i ;
        if (i != n-1)
            cout << " + ";
    }
    cout << "Poly1" << endl;
}
void printPoly ( vector < int > poly ) { cout << " " << endl ; int n = poly . size ( ) ; for ( int i = 0 ; i < n ; i ++ ) { cout << poly [ i ] ; if ( i != 0 ) cout << " " << i ; if ( i != n - 1 ) cout << " " ; } cout << " " << endl ; }
A utility function to print a polynomial
A utility function to print a polynomial