摘要:
本文除了polyAdd,polyMul,mergerPoly为原创,其他为本人的老师提供的源代码。C++单链表实现多项式加法(polyAdd),多项式乘法(polyMul),多项式合并同类项(mergerPoly),多项式减法,多项式除法就不贴出来了。 1 #include<iostream.h> 2 template<class T> 3 class List; 4 template<class T> 5 class Node{ 6 friend class List<T>; 7 private: 8 T coef,exp; 9 No... 阅读全文