Hi there, I'm having a little trouble getting a constructor going. I can define the class OK and
initialize objects using the function "setVals(...)" (see code below), but I would like to make
a constructor for the class, and I keep getting a compiler error.
constructorError.cpp:11: error: prototype for ‘xyDat::xyDat(std::vector<std::vector<double, std::allocator<double> >, std::allocator<std::vector<double, std::allocator<double> > > >)’ does not match any in class ‘xyDat’
constructorError.cpp:5: error: candidates are: xyDat::xyDat(const xyDat&)
constructorError.cpp:5: error: xyDat::xyDat()
Apologies if this is just a dumb syntax problem, or something. I can't seem to see it, if it is.