MFC中我自己定义了一个函数,调用外部的成员变量。为什么编译的时候提示成员变量未定义??怎么解决??
intBL(){intk;if(m_number_a<m_number_b){k=m_number_a;m_number_a=m_number_b;m_number_b=...
int BL()
{
int k;
if(m_number_a<m_number_b)
{
k=m_number_a;
m_number_a=m_number_b;
m_number_b=k;
}
if(m_number_a%m_number_b==0)
return abs(m_number_b);
else
return BL();
}
我的目的是button直接直接调用BL()的
编译时提示m_number_a和m_number_b undeclared identifier 这个要怎么解决? 展开
{
int k;
if(m_number_a<m_number_b)
{
k=m_number_a;
m_number_a=m_number_b;
m_number_b=k;
}
if(m_number_a%m_number_b==0)
return abs(m_number_b);
else
return BL();
}
我的目的是button直接直接调用BL()的
编译时提示m_number_a和m_number_b undeclared identifier 这个要怎么解决? 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询