I'm writing a polynomial project that requires me to utilize classes. Problem is, I have the polynomial stored in two arrays in the class, one for coefficients (float coefficientholder[10]) and one for exponents (int exponentholder[10]), and get functions (at least according to my book) are simply consisting of return commands for use in the main .cpp file.

Since you can't exactly 'return' arrays with the return command, how I am supposed to return the array of coefficients and exponents when I use poly.getcoeff() and poly.getexpn() in the main.cpp file?

Jess