MCPcopy Create free account
hub / github.com/Gecode/gecode / print

Method print

examples/ortho-latin.cpp:141–161  ·  view source on GitHub ↗

Print solution

Source from the content-addressed store, hash-verified

139 }
140 /// Print solution
141 virtual void
142 print(std::ostream& os) const {
143 for (int i = 0; i<n; i++) {
144 os << "\t";
145 for (int j = 0; j<n; j++) {
146 os.width(2);
147 os << y1(i,j) << " ";
148 }
149 os << std::endl;
150 }
151 os << std::endl;
152 for (int i = 0; i<n; i++) {
153 os << "\t";
154 for (int j = 0; j<n; j++) {
155 os.width(2);
156 os << y2(i,j) << " ";
157 }
158 os << std::endl;
159 }
160 os << std::endl;
161 }
162
163};
164

Callers

nothing calls this directly

Calls 1

widthMethod · 0.45

Tested by

no test coverage detected