Home > database >  Ask questions about PB calculator code
Ask questions about PB calculator code

Time:10-03

Int flag
Int point
Char ch
A decimal bridge,
Which of the following is the Numbers 0 to 9, I want to ask flag=0 and flag=1. What do you use. What is the last sentence?
=========================================================================
If flag=0 then
Sle_number. Text=""
Flag=1
End the if
Sle_number. Text=sle_number. + this text. The text
=====================================================================

The following=number of bridge is what use is this?
Choose a case ch
In case the '+'
Sle_number. Text=string (bridge + dec (sle_number. Text))
In case the '-'
Sle_number. Text=string (bridge - dec (sle_number. Text))
Case '*'
Sle_number. Text=string (bridge * dec (sle_number. Text))
Case '/'
Sle_number. Text=string (bridge/dec (sle_number. Text))
The end choose
Bridge=dec (sle_number. Text)
Flag=0
Ch='

========================================================================

This is the multiplication sign

=========================================================
Choose a case ch
In case the '+'
Sle_number. Text=string (bridge + dec (sle_number. Text))
In case the '-'
Sle_number. Text=string (bridge - dec (sle_number. Text))
Case '*'
Sle_number. Text=string (bridge * dec (sle_number. Text))
Case '/'
Sle_number. Text=string (bridge/dec (sle_number. Text))
The end choose
Bridge=dec (sle_number. Text)
Ch=this. Text
Flag=0
Point=0

=============================================================

Ask may not be very easy to describe the problem clearly.. Which player has time to download the attachment help me have a look, if you can, help me annotation program. Thank you!

CodePudding user response:

Top it..

CodePudding user response:

Remembered before help students to do an interview into, very large digital calculator ha ha

CodePudding user response:


Flag=0 is on behalf of the calculator state before the input in the basket input the first number, enter the first number after change the flag state to 1
Bridge is recording your calculator operation is the first operation value

CodePudding user response:

What ah

CodePudding user response:

A little difficulty oh

CodePudding user response:


Have any PB can master to moonlight as a training instructor? If an interested friends, please send resume

To: [email protected], please contact: QQ: 174629429 MSN:[email protected]

CodePudding user response:

Calculator on the input number is a bitwise combination, flag is a sign to confirm that the entered a number lose out,

CodePudding user response:

Can use a more complete program written ah, thank you
  • Related