16 個の配列があります (以下の例)。トーナメントの各試合では、2 つのレストランを表示し、お気に入りのレストランを選択するよう促し、負けたレストランをトーナメントから除外します。これはブラケット システムのようなものです。つまり、レストランは、他のすべてのレストランがそのラウンドの試合に登場するまで、別の試合に再び登場することはありません)。したがって、8 試合、次に 4 試合、次に 2 試合から始めます。レストランの数が 16 に等しくない限り、トーナメントを開始させないでください。私は C++ にかなり慣れていません。私が見るべきまともな概要や提案/パスを持っている人はいますか?
string restaurants[] = {"Texas Roadhouse,","On The Border,","Olive Garden,","Panda Express,","Cracker Barrel,","IHOP,","Panda Express,","Pei Wei"};