总统大选视窗程式.docVIP

  • 4
  • 0
  • 约1.21千字
  • 约 3页
  • 2020-05-26 发布于湖北
  • 举报
「總統大選」視窗程式 將輸入的數值存入陣列,並使用氣泡排序法排序,然後將排序的結果顯示出來。 設計步驟: 配置畫面所需要的物件。 撰寫Command 1物件之Click事件的程式碼,作輸入資料的工作。 撰寫Command 2物件之Click事件的程式碼,作排序的工作。 主畫面配置: 屬性設定: 控制項 屬性 設定值 Label 1 Caption “請輸入數值:” Label 2 (0) Caption “ ” Label 2 (1) Caption “ ” Label 2 (2) Caption “ ” Label 2 (3) Caption “ ” Label 3 (0) Caption “票” Label 3 (1) Caption “票” Label 3 (2) Caption “票” Label 3 (3) Caption “票” Picture 1 (0) Picture 1 (1) Picture 1 (2) Picture 1 (3) Text 1 Caption “ ” Command 1 Caption Name “確定” “Command 1” Command 2 Caption Name “排序” “Command 2” 開始開始開始 開始 開始 開始 利用亂數隨機產生4 利用亂數隨機產生4組數字 外層迴圈開始 Next s外層迴圈終止值Next f內層迴圈

文档评论(0)

1亿VIP精品文档

相关文档