extern void object::Solution( ) { while ( true ) { float dir, len; dir = receive("Direction"); if ( dir == nan ) break; len = receive("Length"); if ( len == nan ) break; turn(dir); move(len); } }