ประโยคภาษาจีน : 中文句子 |
---|
yào 要 shí xiàn 实现 jī běn 基本 de 的 jì suàn qì 计算器 gōng néng 功能 xū yào 需要 tiān jiā 添加 liǎng gè 两个 biàn liàng 变量 yí gè 一个 lěi jiā qì 累加器 yòng lái 用来 zài 在 cāo zuò 操作 àn niǔ 按钮 àn xià 按下 shí 时 cún chǔ 存储 dì 第 yí gè 一个 cào zuò shǔ 操作数 de 的 zhí 值 yí gè 一个 biàn liàng 变量 yòng lái 用来 cún chǔ 存储 cāo zuò 操作 běn shēn 本身 |
You need two variables to implement a basic calculator: an accumulator to store the value of the first operand when an operation button is pressed, and a variable to store the operation itself. |