이유는 무엇입니까 분할 결함이 코드 중지 :표준 : :지도 삽입 세그먼트 오류
class MapFile
{
public:
/* ... */
std::map <unsigned int, unsigned int> inToOut;
};
bool MapFile::LoadMapFile(const wxString& fileName)
{
/* ... */
inToOut.insert(std::make_pair(input,output));
}
하지만 난 둘 때 "표준 : :지도 inToOut을;" 그냥 "inToOut.insert"전에 그냥 잘 작동합니다 :
?
확인. 고마워요, 당신의 도움으로이 문제를 해결 한 것 같습니다.
이void WizardProductPage::OnTestButtonMapFile(wxCommandEvent& event)
{
wxString filename;
filename = locMapFile->GetValue();
MapFile mapFile;
mapFile.LoadMapFile(filename);
}
디버거에서 알려주는 것은 무엇입니까? –