vc++ MFC编程 基于对话框编程
在对话框编程中,画了一个编辑框,并设置membervariables为m_card;现在我想实现:(strcmp(m_ecard,"")=="null")却报错了报错内容...
在对话框编程中,画了一个编辑框,并设置member variables为m_card;
现在我想实现:(strcmp(m_ecard,"") == "null")却报错了
报错内容:
error C2446: '==' : no conversion from 'char *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
error C2040: '==' : 'int' differs in levels of indirection from 'char [5]' 展开
现在我想实现:(strcmp(m_ecard,"") == "null")却报错了
报错内容:
error C2446: '==' : no conversion from 'char *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
error C2040: '==' : 'int' differs in levels of indirection from 'char [5]' 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询