1个回答
展开全部
//在vc++中字符比较
CString m_m,m_d1,m_d2,m_d3;
CString M[]={"M3","M4","M5};
MM[12][4]={{"3.4","6.0","","3.4"},{"4.5","8.0","","4.6"},
{"5.5","10.0","","5.7"}};
if( m_m.Compare( M[i] ) == 0 ){
m_d1=MM[i][0];
m_d2=MM[i][1];
m_d3=MM[i][2];
UpdateData(false);//用新的编辑框之值更新编辑框显示
}
CString m_m,m_d1,m_d2,m_d3;
CString M[]={"M3","M4","M5};
MM[12][4]={{"3.4","6.0","","3.4"},{"4.5","8.0","","4.6"},
{"5.5","10.0","","5.7"}};
if( m_m.Compare( M[i] ) == 0 ){
m_d1=MM[i][0];
m_d2=MM[i][1];
m_d3=MM[i][2];
UpdateData(false);//用新的编辑框之值更新编辑框显示
}
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询