编写一个VFP程序

224 2024-03-07 01:30

一、编写一个VFP程序

新建一个程序(文件菜单——新建——程序——新建文件),写代码:

input 请输入一个数: to x

s=0

for i=x to 100

 if i%7=0 or i%11=0

  ? i

  s=s+i

 endif

next i

?这些数的和是,s

然后,直接点击感叹号,保存并运行,图:

二、vfp 就是编程吗

VFP 就是 Visual Foxpro,是编程语言的一种,编程语言还有:Visual C++,Visual basic,Delphi,pascal,c,c++,java,c#,lisp,python,sql,smalltalk,ada,prolog,algol,simula 等等

三、VFP编程序,懂VFP的来!

Input 'Please type the first number : ' to a

Input 'Please type the second number : ' to b

Input 'Please type the third number : ' to c

Input 'Please type the fourth number : ' to d

Input 'Please type the fifth number : ' to e

Return Iif(a/2=int(a/2),a,0)+Iif(b/2=int(b/2),b,0)+Iif(c/2=int(c/2),c,0)+Iif(d/2=int(d/2),d,0)+Iif(e/2=int(e/2),e,0)

&& Save the text to file p4.prg

四、VFP简单程序语言

这个很简单:

use 您的表名

replace all 还款金额 with 借款金额+利息

use

顶一下
(0)
0%
踩一下
(0)
0%
相关评论
我要评论
点击我更换图片