1212 *
1313 */
1414
15- #include " tests.h"
15+ #include " ../ tests.h"
1616
17- main () {
17+ /* STEPentity* Iterator class definition */
18+ #include " ../SEarritr.h"
19+
20+ int main () {
1821 // This has to be done before anything else. This initializes
1922 // all of the registry information for the schema you are using.
2023 // The SchemaInit() function is generated by fedex_plus... see
@@ -39,7 +42,7 @@ main() {
3942 rect.height_ ( 5 );
4043 rect.width_ ( 10 );
4144 cout << " Rectangle: (" << rect.opcode () << " ) " << endl;
42- cout << " Name: " << rect.item_name_ () << endl;
45+ cout << " Name: " << rect.item_name_ (). c_str () << endl;
4346 cout << " Color: " << rect.item_color_ () << endl;
4447 cout << " Sides: " << rect.number_of_sides_ () << endl;
4548 cout << " Height: " << rect.height_ () << endl;
@@ -55,7 +58,7 @@ main() {
5558 square.height_ ( 3 );
5659 square.width_ ( 3 );
5760 cout << " Square: (" << square.opcode () << " ) " << endl;
58- cout << " Name: " << square.item_name_ () << endl;
61+ cout << " Name: " << square.item_name_ (). c_str () << endl;
5962 cout << " Color: " << square.item_color_ () << endl;
6063 cout << " Sides: " << square.number_of_sides_ () << endl;
6164 cout << " Height: " << square.height_ () << endl;
@@ -72,7 +75,7 @@ main() {
7275 tri.side2_length_ ( 4 );
7376 tri.side3_length_ ( 5 );
7477 cout << " Triangle: (" << tri.opcode () << " ) " << endl;
75- cout << " Name: " << tri.item_name_ () << endl;
78+ cout << " Name: " << tri.item_name_ (). c_str () << endl;
7679 cout << " Color: " << tri.item_color_ () << endl;
7780 cout << " Sides: " << tri.number_of_sides_ () << endl;
7881 cout << " Side 1: " << tri.side1_length_ () << endl;
@@ -88,7 +91,7 @@ main() {
8891 circ.number_of_sides_ ( 1 );
8992 circ.radius_ ( 15 );
9093 cout << " Circle: (" << circ.opcode () << " ) " << endl;
91- cout << " Name: " << circ.item_name_ () << endl;
94+ cout << " Name: " << circ.item_name_ (). c_str () << endl;
9295 cout << " Color: " << circ.item_color_ () << endl;
9396 cout << " Sides: " << circ.number_of_sides_ () << endl;
9497 cout << " Radius: " << circ.radius_ () << endl;
0 commit comments