これに対する解決策が見つからないようです。
マトリックスを含む「ルート」タイプがあります。
cout << route << endl;
動作しますが、メモリを印刷しますが、試してみると
cout << route[1][1] << endl;
プログラムはエラーなどなしで終了します。デバッグは言う:「(一時停止:シグナル:SIGSEGV:セグメンテーション違反)」
コードは次のとおりです。
//structure is a type I created
Structure ***route = list->searchRoute(startPoint, destination, time);
//should return a matrix
cout << "Avaible routes: \n" << endl;
for(int i = 0; i < 5;i++)
cout << route[1][1]->startPoint << endl;