當前位置:編程學習大全網 - 編程軟體 - vfp編程 考試呢 在線等 急!!!!!1

vfp編程 考試呢 在線等 急!!!!!1

第三題答案,註意答案中的數據表名是用漢字來表示的,實際應修改成妳的數據表名

tc=1

do whil tc=1

accept "請輸入妳要查詢的國家名稱:" to gj

use 金牌榜

loca for 國家=allt(gj)

if found()

stor 金牌數 to jps

stor 銀牌數 to yps

stor 銅牌數 to tps

use 國家

appe blan

repl 國家 with gj,金牌數 with jps,銀牌數 with yps,銅牌數 with tps,獎牌總數 with jps+yps+tps

list 國家,金牌數,銅牌數,獎牌總數 for 國家=gj

input "是否還要查找其它國家信息(1-是,0-否)" to tc

if tc<>1.and.tc<>0

messagebox("輸入無效,請重新輸入1或者是0!",0,"系統消息)

input "是否還要查找其它國家信息(1-是,0-否)" to tc

endi

else

messagebox("查無此國家,請重新輸入!",0,"系統消息)

endi

endd

  • 上一篇:浙大成全球首個純機器人送貨高校,每個機器人日均配送多少件快遞?
  • 下一篇:echo是什麽命令
  • copyright 2024編程學習大全網