I have this code which is about polynomials multiplication. I meet no error, just what I want is to sort the terms based on degrees (from lower degree to higher). If I add condition in operator* in //commented part, it will be printed too many of times. I would like to know if I can use m_Polynomial.sort()? If yes how? If not, what other methods can I use?
As it is both for printing polynomials and their multiplication result it would be nice if it could be added in print function.
Also if it is possible to change the printing style of Polynomials to desired format (to add coefficients of same degree terms)
I need to say this assignment was too harder than my knowledge in C++, with your help I could progress this much and learned a lot. If I ask too many questions is not becasue I don't want to think and work, I am doing my best, just here is not only forum for me, but it is the C++ class that I don't have. Thanks
There also shouldn't be 2 topics about essentially the same subject. There is a risk that the same things will be said in both, possibly making it a time waster for those who reply.
@closed account 5a8Ym39o6
Thank you for reminding but my problem is really different, if someone wants to understand my problem and help should read all comments and it doesn't happen.
How can I ask people to check a different problem for same topic
> How can I ask people to check a different problem for same topic
Just go to the first page of old topic and press "Edit topic". Then change the topic name to "Why my operator* acts illogical?".