当前位置:网站首页>Goto statement jump uninitialized variable: c2362
Goto statement jump uninitialized variable: c2362
2022-06-30 11:45:00 【HL_ Aeolus】
Source error code :
The compiler will report an error :C2362 goto _exit Skip the _exit The initial state
ebmlib ebm;
ebm.init(p);
QString sCode="000000",sMsg="SUCCESS",sEnMsg="SUCCESS";
QByteArray baJson;
QJsonObject jRet;
bool bParse=false;
QByteArray json=ebm.PostData();
bParse = AesDecryptQByteArray(json);
if(!bParse)
{
sCode="10003";
sMsg=QObject::tr(" Data exception , Decryption failed ");
sEnMsg=QString("Data Decrypt error");
goto _exit;
}
QJsonObject jo=LoadJsonObject(json,bParse); //goto Skip over here jo Declaration of variables , So it's a mistake C2362
if(!bParse)
{
goto _SetErrData;
}
resolvent :
The solution is to jo The declaration of variables is advanced to the beginning of the program
ebmlib ebm;
ebm.init(p);
QString sCode="000000",sMsg="SUCCESS",sEnMsg="SUCCESS";
QByteArray baJson;
QJsonObject jRet,jo;
bool bParse=false;
QByteArray json=ebm.PostData();
bParse = AesDecryptQByteArray(json);
if(!bParse)
{
sCode="10003";
sMsg=QObject::tr(" Data exception , Decryption failed ");
sEnMsg=QString("Data Decrypt error");
goto _exit;
}
jo=LoadJsonObject(json,bParse); // The solution is to jo The declaration of variables is advanced to the beginning of the program
if(!bParse)
{
goto _SetErrData;
}
边栏推荐
- CVPR 2022 | 大幅减少零样本学习所需人工标注,马普所和北邮提出富含视觉信息的类别语义嵌入...
- Flutter 从零开始 008 表单
- Le talent scientifique 丨 dessins animés qu'est - ce qu'erdma?
- 来聊聊怎么做硬件兼容性检测,快速迁移到openEuler?
- 考研这些“不靠谱”的经验有多害人?
- 阿里云李飞飞:中国云数据库在很多主流技术创新上已经领先国外
- 科普達人丨漫畫圖解什麼是eRDMA?
- Limited time appointment | Apache pulsar Chinese developer and user group meeting in June
- Summer vacation study record
- Customize an annotation to get a link to the database
猜你喜欢

wallys/600VX – 2×2 MIMO 802.11ac Mini PCIe Wi-Fi Module, Dual Band, 2,4GHz / 5GHz QCA 9880
![[xi'anjiaotonguniversity] information sharing of the first and second postgraduate entrance examinations](/img/06/df5a64441814c9ecfa2f039318496e.jpg)
[xi'anjiaotonguniversity] information sharing of the first and second postgraduate entrance examinations

Evaluation of IP location query interface Ⅲ

Wechat Emoji is written into the judgment, and every Emoji you send may become evidence in court

60 个神级 VS Code 插件!!

"New digital technology" completed tens of millions of yuan of a + round financing and built an integrated intelligent database cloud management platform

揭秘得物客服IM全链路通信过程

暑假学习记录

dplyr 中的filter报错:Can‘t transform a data frame with duplicate names
![[IC5000 tutorial] - 01- use daqdea graphical debug to debug C code](/img/54/037b62ff9682ae9fdf861263211043.png)
[IC5000 tutorial] - 01- use daqdea graphical debug to debug C code
随机推荐
Summer vacation study record
以PolarDB为代表的阿里云数据库以跻身全球第一阵营
How to 'gracefully' avoid MySQL login prompt information in scripts
什么是微信小程序,带你推开小程序的大门
Multiparty cardinality testing for threshold private set-2021: Interpretation
Methods and usage of promise async and await
导致系统性能失败的10个原因
“新数科技”完成数千万元A+轮融资,造一体化智能数据库云管理平台
AUTOCAD——LEN命令
国产数据库的黄金周期要来了吗?
Customize an annotation to get a link to the database
国内首批!阿里云云原生数据湖产品通过信通院评测认证
led背光板的作用是什么呢?
goto语句跳转未初始化变量:C2362
"New digital technology" completed tens of millions of yuan of a + round financing and built an integrated intelligent database cloud management platform
STM32F407ZGT6使用SDIO方式驱动SD卡
他是上海两大产业的第一功臣,却在遗憾中默默离世
R language de duplication operation unique duplicate filter
Flutter 从零开始 008 表单
[revisiting the classic C language] ~x,%c,%d,%x, etc. in C language, the role of the address character in C language, and the consortium in C language