a class can have more than one constructor. write another constructor that takes the parameter you want.
class Class1
{
public:
Class1(); // default constructor
Class1(int array[10], int size);
};
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343