Print solution
| 112 | |
| 113 | /// Print solution |
| 114 | virtual void |
| 115 | print(std::ostream& os) const { |
| 116 | for (int i=0; i<x.size(); i++) { |
| 117 | os << "\t[" << i << "] = " << x[i] << std::endl; |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | /// Constructor for copying \a s |
| 122 | Hamming(Hamming& s) : Script(s) { |