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
...
Qt Code:
  1. ships.add (4,5);
  2. cout<<ships.solution;
  3. return 0;
  4.  
  5. }
  6.  
  7. Ships::Ships() {
  8.  
  9.  
  10.  
  11. // TODO Auto-generated constructor stub
  12.  
  13. }
  14.  
  15. Ships::~Ships() {
  16. // TODO Auto-generated destructor stub
  17. }
To copy to clipboard, switch view to plain text mode