rjdfhorn
04-09-2008, 12:59 AM
How would you complete these constructors...I keep getting errors. Please help.
Array::Array(); //default constructor
Array::Array(int x); //constructor that uses the passed integer to set the size of //the array
Array::Array(int x, double y);//constructor that uses the passed integer to set //the size of the array and initializes all elements to the passed double value.
I can't get any of these constructors to work correctly. Please help.
Array::Array(); //default constructor
Array::Array(int x); //constructor that uses the passed integer to set the size of //the array
Array::Array(int x, double y);//constructor that uses the passed integer to set //the size of the array and initializes all elements to the passed double value.
I can't get any of these constructors to work correctly. Please help.