MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / printPoly

Method printPoly

PolynomialAddition.cpp:98–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 }
97
98 void printPoly(term *first){ //function to print the stored polynomial
99 char var = 'x';
100 while(first!=NULL){
101 cout <<first->coeff << var << "^" << first->pow << " ";
102 first = first->next;
103 if(!(first == NULL))
104 cout << "+ ";
105 }
106 cout << endl;
107 }
108}poly; //Data Structure (Linked List) based polynomial addition
109
110int main(){

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected