const int one = 1; int newvalue; if (ui->viewlcdnumber->value() == 0) { ui->viewlcdnumber->display(one); } else { newvalue = one + ui->viewlcdnumber->value(); ui->viewlcdnumber->display(newvalue); }
newvalue = 10 * ui->viewlcdnumber->value() + 1 ; ui->viewlcdnumber->display(newvalue);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)