真心求大家分析下面这个语法错误:: error C2360: initialization of 'tt' is skipped by 'case',附完整代码
求大家帮我看下面这个语法错误,分不够 暂时不另外开帖,以后补分
: error C2360: initialization of 'tt' is skipped by 'case' label
: see declaration of 'tt'
error C2360: initialization of 'tt' is skipped by 'case' label
: see declaration of 'tt'
: error C2360: initialization of 'tt' is skipped by 'case' label
: see declaration of 'tt'
: error C2361: initialization of 'tt' is skipped by 'default' label
: see declaration of 'tt'
- 4 error(s), 0 warning(s)
代码: 值得一提的是 我把char* tt=NULL;改成char* tt;就没有错误了,是为什么呢,谢谢好心的你
case 6:
char* tt=NULL;
tt=queryUeData("127.0.0.1",3000);
if ( tt!= NULL)
{
cout<<"queryUeData test succesfull"<<endl;
cout<<tt<<endl;
}
else
{
cout<<"queryUeData test fail"<<endl;
}
Sleep(3000);
//i=4;
break;