このTryIt()
関数はSIGSEGVエラーを引き起こしますが、GCCでのみ発生し、VisualCでは発生しません。
string strs[] =
{
"str1",
"str2",
"str3",
""
};
void Tryit()
{
int cnt = 0;
while ( strs[cnt] != "" )
cnt++;
}
このTryIt()
関数はSIGSEGVエラーを引き起こしますが、GCCでのみ発生し、VisualCでは発生しません。
string strs[] =
{
"str1",
"str2",
"str3",
""
};
void Tryit()
{
int cnt = 0;
while ( strs[cnt] != "" )
cnt++;
}