Polynomial class

This is a discussion on Polynomial class within the C++ Programming forums, part of the General Programming Boards category; I plan revise my program to handle polynomial equations with one variable.
i.e.
Code:
5x² - 3x + 7 - ...

String Multiplication (string A, string B)
{
A = "x+2"; »1x^1 + 2x^0
B = "x-3"; »1x^1 + 3x^0
...Count no. terms in string A and B
Create a nested for loop, looping through the no. terms
Multiply coefficients and exponents, of course is a
little more complicated than this but you get the idea.
return string;
}

String Multiplication (string A, string B)
{
A = "x+2"; »1x^1 + 2x^0
B = "x-3"; »1x^1 + 3x^0
...Count no. terms in string A and B
Create a nested for loop, looping through the no. terms
Multiply coefficients and exponents, of course is a
little more complicated than this but you get the idea.
return string;
}

Thanks

First of all, I don't understand why you feel you have to have different classes for the different operations. Surely it would be easier to have just one class, say Polynomial, and Addition, Multiplication etc will be methods.
Secondly, you need to define the methods in a class {} structure, which you don't appear to have done.
Thirdly, there is no "string" type in Standard C++.

Well it would be either a polynomial class or just separate functions.

One function for multiplication,addition and subtraction.

And if I was using a class, different methods for addition, multiplication and subtraction.

I was still deciding on whether to use a class structure or just plain ol' functions. In my post above I have illustrated my ideas using functions. Yeah I guess I use the word class and function quite loosely.

Anyway the points mentioned are trivial. Rather I was wondering if anyone had any actual ideas on how to handle polynomials. If so I'm all ears.