Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
不確定な数の三角形をベクトルに格納する必要があるため、次のようになります。
std::vector<Point[3]>
しかし、それは有効なC++98ではありません。三角形の構造体を含まない他のソリューションは何ですか?
ありがとう
を試してくださいboost::array<Point, 3>。それは必要なことをするはずです。
boost::array<Point, 3>
struct
pair<pair<Point,Point>,Point>
std::tuple
tuple