0
struct myS {
   std::vector<std::vector<double> > *A;
}

インデックスを使用して A の要素にアクセスしたい。これ(および他のバージョン)を試しましたが、うまくいきませんでした。

struct myS test;   
std::vector<double> B = *(test.A)[0];
4

4 に答える 4