vfp 设计一个电话计费系统,假定每分钟通话费用0.12元

,要求,表单窗口用标签列出开始和结束时间,通话时间及应付金额,在设计一个开始按钮(按下时开始计时)和计费按钮(按下时显示结束时间,通话时间,应付金额)
设计电话计费系统,每分钟0.12元

先建四个标签、两个按钮
“开始按钮”的代码是
public t1
thisform.label1.caption=time()
t1=seconds()
“计费”的代码是
thisform.label2.caption=time()
t2=seconds()
t=(t2-t1)/60
m=int(t)
if t<>m
m=m+1
endif
thisform.label3.caption=str(m,2)
thisform.label4.caption=str(0.12*m,5,2)
温馨提示:答案为网友推荐,仅供参考