-2
struct the_raw_data {
double data;
double other;
};
int testingReadFunctionsout() {
std::vector<the_raw_data> &thevector; /*Here is where the initialization needs to happen*/
return 0;
}
私は、次のエラーを取得しています:がベクトルを初期化し、適切
main.cpp: In function ‘std::vector<the_raw_data>& readDataFromFileOut(std::__cxx11::string)’: main.cpp:108:29: error: ‘v’ declared as reference but not initialized std::vector<the_raw_data>& v;
それはすべてが私の頭の上に行ってきました、私は別の関数からそれを返していましたそれを変更するのを忘れてしまった。ありがとう。 – abeltre1