Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
~616 People Reached
Favorite Forums
Favorite Tags
c++ x 23
Member Avatar for FatimaRizwan

This is the operator overloading for the polynomials doubly linked list , this code is working fi9 but i m getting repetition like 1x^1 2x^2 when added with 1x^1 3x^6 2x^1 2x^2 3x^6 but i get those terms also which are subtracted already like i get 1x^1 2x^2 1x^1 3x^6 …

0
60
Member Avatar for FatimaRizwan

I have made an insertion sort function for a doubly linked list of polynomials , i cant figure out the error , please help me with it! [CODE]void insertionSort() { node* temp=head; while(temp->next != NULL) { node* second =temp->next; if (second->exponent==temp->exponent) { temp=temp->next; } else { second->previous->next=second->next; second->next->previous=second->previous; if (head->exponent …

Member Avatar for Fbody
-1
121
Member Avatar for FatimaRizwan

[CODE]// basic file operations #include <iostream> #include <fstream> #include <string> using namespace std; int main () { char* pch; string line; fstream myfile; myfile.open ("Ahoo.txt"); if (myfile.is_open()) { while (!myfile.eof()) { getline (myfile,line); cout<<line<<endl; pch = strtok (line," ,.-"); while (pch != NULL) { cout<<pch; pch = strtok (NULL, " …

Member Avatar for jonsca
0
435