if(ui.comboBox->currentText()=="+")
{
DLL * e =new DLL;
ui.doubleSpinBox_3->setValue(e->add(ui.doubleSpinBox->value(),ui.doubleSpinBox_2->value()));
}
else if (ui.comboBox->currentText()=="-")
{
DLL * w =new DLL;
ui.doubleSpinBox_3->setValue(w->plus(ui.doubleSpinBox->value(),ui.doubleSpinBox_2->value()));
}
为什么用断点跟踪发现当comboBox->currentText()=="-"时根本不进入IF中,是不是代码哪有问题,请高手讲解!~~~~~