Ok, I'll address the inline code. Thanks for your input.The main topic above was abt not having a constructor "design" which I need help with. I made a little more progress: this is the bottom of my main.cpp - (1) how do I initialize values with this constructor and isit fine with its current location?
bottom of .cpp file
...
ships.add (4,5);
cout<<ships.solution;
return 0;
}
Ships::Ships() {
// TODO Auto-generated constructor stub
}
Ships::~Ships() {
// TODO Auto-generated destructor stub
}
ships.add (4,5);
cout<<ships.solution;
return 0;
}
Ships::Ships() {
// TODO Auto-generated constructor stub
}
Ships::~Ships() {
// TODO Auto-generated destructor stub
}
To copy to clipboard, switch view to plain text mode
Bookmarks