도와주십쇼 ㅋㅋㅋ
글쓴이: bigdaddy2001 / 작성시간: 화, 2013/01/29 - 11:48오전
if(widget == Number0)
{
}
else if(widget == Number1)
{
strBuf += QString("1");
}
else if(widget == Number2)
{
strBuf += QString("2");
}
else if(widget == Plus)
{
if((strBuf.toAscii().data())[strBuf.length()-1] != '+' && (strBuf.toAscii().data())[strBuf.length()-1] != '-' && (strBuf.toAscii().data())[strBuf.length()-1] != '*' && (strBuf.toAscii().data())[strBuf.length()-1] != '/')
{
strBuf += QString("+");
}
}
else if(widget == Minus)
{
if((strBuf.toAscii().data())[strBuf.length()-1] != '+' && (strBuf.toAscii().data())[strBuf.length()-1] != '-' && (strBuf.toAscii().data())[strBuf.length()-1] != '*' && (strBuf.toAscii().data())[strBuf.length()-1] != '/')
{
strBuf += QString("-");
}
}
else if(widget == Equal)
{
strBuf = QString("result:");
}
......이런식으로 구성되잇구요 마지막에 Equal에 갑을 넣으려면 어떻게해야되나요
Forums:


...equal에 갑을 넣는다니...
을도 아니고... 패기넘치는 코드로군요 ㄷㄷㄷ
댓글 달기