C++ では不明な理由で文字列配列を定義できません。この配列からランダムに文字列を取得する必要があります。
次のことを試しています:
string bands[] = { "Rammstein", "Slipknot", "Franz Ferdinand", "Gorillaz" };
エラーとして次のように表示されます。
error C2146: syntax error : missing ';' before identifier 'bands'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C3845: 'SpurdoSparde::Form1::bands': only static data members can be initialized inside a ref class or value type
念のために言っておきますが、私は Windows フォーム アプリケーションを使用しています。違いがあるかどうかはわかりません。