switch (m_term)
{
case "一上": term="q1"; break;
case "一下": term="q2"; break;
case "二上": term="q3"; break;
case "二下": term="q4"; break;
case "三上": term="q5"; break;
case "三下": term="q6"; break;
case "四上": term="q7"; break;
}m_term为CString类型的变量。
请问如何改?
{
case "一上": term="q1"; break;
case "一下": term="q2"; break;
case "二上": term="q3"; break;
case "二下": term="q4"; break;
case "三上": term="q5"; break;
case "三下": term="q6"; break;
case "四上": term="q7"; break;
}m_term为CString类型的变量。
请问如何改?
然后建一个数组,给它们赋值,用循环来判断