回答編集履歴
2
コード修正
answer
CHANGED
@@ -96,9 +96,9 @@
|
|
96
96
|
<< endl << setfill(' ') << right
|
97
97
|
<< "\"直線 [" << setw(4) << x1 << "," << setw(4) << y1 << "]"
|
98
98
|
<< " - [" << setw(4) << x2 << ", " << setw(4) << y2 << "]"
|
99
|
-
<< hex
|
99
|
+
<< hex << setfill('0');
|
100
100
|
<< " [0x" << setw(6) << foreColor << "] [0x" << setw(6) << backColor << "]"
|
101
|
-
<< dec
|
101
|
+
<< dec << setfill(' ');
|
102
102
|
<< (lineKind ? " 点線 " : " 実線 ")
|
103
103
|
<< "[" << setw(4) << startX << ", " << setw(4) << startY << "]"
|
104
104
|
<< "[" << setw(4) << endX << ", " << setw(4) << endY << "]"
|
1
コード修正
answer
CHANGED
@@ -124,9 +124,9 @@
|
|
124
124
|
bases.push_back(straightine + 1);
|
125
125
|
|
126
126
|
for (auto it = std::begin(bases); it != std::end(bases); ++it) {
|
127
|
-
Bottom* straightine2;
|
128
|
-
|
127
|
+
Bottom* straightine2 = dynamic_cast<StraightLine*>(*it);
|
128
|
+
if (straightine2) straightine2->LK();
|
129
|
-
|
129
|
+
}
|
130
130
|
|
131
131
|
delete[] straightine;
|
132
132
|
|