该TryIt()
函数会导致 SIGSEGV 错误,但仅适用于 GCC 而不是 Visual C:
string strs[] =
{
"str1",
"str2",
"str3",
""
};
void Tryit()
{
int cnt = 0;
while ( strs[cnt] != "" )
cnt++;
}
该TryIt()
函数会导致 SIGSEGV 错误,但仅适用于 GCC 而不是 Visual C:
string strs[] =
{
"str1",
"str2",
"str3",
""
};
void Tryit()
{
int cnt = 0;
while ( strs[cnt] != "" )
cnt++;
}