option base 1
private sub command1_click()
clsme.font.size = 30
dim anma() as integer
dim m as integer, n as integer
m = 5: n = 6
redim anma(m, n)
dim i as integer, j as integer
for i = 1 to m
for j = 1 to n
anma(i, j) = 10 + int(rnd() * 90)
next j
next i
for i = 1 to m
for j = 1 to n
print anma(i, j); spc(3);
next j
next i
dim row_max as integer, column_max as integer
for i = 1 to m
row_max = anma(i, 1)
column_max = 1
for j = 2 to n
if anma(i, j) > row_max then
row_max = anma(i, j)
column_max = j
end if
next j
for k = 1 to m
if anma(k, column_max) < row_max then
exit for
end if
next k
if k = m + 1 then
print "鞍點:" & i & "," & column_max
end if
next i
end sub
一.實驗問題及解決方法
因剛開始編寫程式匆忙,很多字母沒有定義,仔細檢查後,定義了所有的字母,中間有許多程式都不會編碼,在網上找到參考後,略懂一點,在這次程式中,我了解到pubilc sub這種大的範圍宣告,了解了情況的分類和列舉,打程式時,很多情況都沒考慮到,很多東西都是找的網上參考才使程式完整。
實驗五實驗報告
系統架構圖 首先我在我的電腦裡建立了有名稱要求的資料夾,然後開啟android studio clone了我們的小組專案。此處因為已經clone過了,所以無法再把這個專案clone進去 進行編譯,執行,測試均正常 我在遊戲主介面載入了乙個toast,點選可以短暫地顯示我的學號資訊 首先在封面檔案裡我...
實驗六實驗報告
實驗結論 part1 結構體型別及程式設計應用 1.補足程式 include const int n 5 定義結構體型別struct student,並定義stu為其別名 typedef struct student stu 函式宣告 void input stu s,int n int findm...
實驗三實驗報告
實驗結論 part 1 1 從鍵盤上輸入3個數,讓它們代表3條線段的長度,編寫乙個c程式判斷這3條線段組成的三角形屬於什麼型別 一般三角形 等腰三角形 等邊三角形或不構成三角形 1 兩種if語句都可以達到實驗目的,因此條件語句寫法很靈活,所以自己以後寫乙個程式時也會考慮多種寫法 2 while和if...