MFC中乘法的问题
我想在费用栏显示“本月实际使用”栏和“单价”栏相乘的结果
所以用了下面的语句:
CString buffer="";
buffer+=m_list.GetItemText(0,4);
CString buffer1="";
buffer1+=m_list.GetItemText(0,5);
CString buffer2=buffer*buffer1;
m_list.SetItemText(0,6,_T(buffer2));
结果说:
binary '*' : 'class CString' does not define this operator or a conversion to a type acceptable to the predefined operator
说CString不支持“*”,那我想做乘法运算,该怎么进行呢?
谢谢各位高人教教我