Thanks for the advice. My idea is to get the length of the string and then using a loop go through the string and extract coefficients and exponents into two different arrays. Am I on the right path?
I would use vectors, but I forgot to say that vectors are also forbidden.
One more question:
Also, I have to create a function for polynomials division. When I divide with polynomial of 1st degree, I thought to do it with Horner's method, but I have problem when I divide with polynomial of 2nd or higher degree. Can someone give me just a little hint?