smallbasic

    0熱度

    1回答

    所以對於我正在做一個小基礎項目,想法很簡單,就像我的問題。我正在製作一種賭博模擬器。 ready: TextWindow.WriteLine("Do you want to bet? yes(1) or no(2).") answer = TextWindow.ReadNumber() If answer = 1 Then Goto start Else Goto re

    0熱度

    1回答

    我正在計劃一個MS Small Basic程序,在這裏我將相當數量的數字作爲輸入。我怎樣才能從Excel工作表中讀取數字表格? 安蒂

    0熱度

    1回答

    示例代碼: GraphicsWindow.MouseDown = md Sub md color = GraphicsWindow.GetPixel(GraphicsWindow.MouseX,GraphicsWindow.MouseY) EndSub 這會返回一個十六進制值,但我需要將其轉換爲RGB值。我該怎麼做?

    1熱度

    1回答

    我想給我的Small Basic程序隨機背景: If File.ReadContents(Program.Directory + "\Turtle.settings") = "" Then Reset() EndIf Background = File.ReadLine(Program.Directory + "\Turtle.settings", 1) Color = File

    0熱度

    2回答

    下面是完整的代碼: GraphicsWindow.Clear() GraphicsWindow.CanResize = "false" GraphicsWindow.Height = Desktop.Height-200 GraphicsWindow.Width = Desktop.Width-200 scount = Math.GetRandomNumber(25) For s =

    1熱度

    2回答

    For num = 100 To 5 Step -5 TextWindow.WriteLine(num) EndFor 控制檯中顯示的此代碼的最終值爲5.但是,如果在For循環之外使用'num'變量,則'num'的值將爲0.爲什麼當我指定停止在5時,數字不是5?這裏發生的計算機邏輯是什麼? For num = 100 To 5 Step -5 TextWind

    0熱度

    2回答

    我一直在嘗試模擬在Small Basic中跳躍,我原本雖然很簡單但比我預期的更復雜。每當我嘗試在for循環中使用動畫(或移動)時,程序似乎總是將我在開始時分配的任何延遲放在一起,然後是單個動畫/移動。例如: GraphicsWindow.Height = 480 GraphicsWindow.Width = 640 pX = 300 pY = 220 GraphicsWindow.Ke

    -3熱度

    1回答

    我想用小基本來製作隧道效果,但我需要先獲取截圖腳本。請給我一個小基本的截圖腳本。

    0熱度

    1回答

    所以今天我決定看一下小基本的研究生功能,我發現它允許你將你的小基本代碼轉換成Visual Studio格式,我想。我發現這是因爲編譯器無法理解像GraphicsWindow,TextWindow,Mouse,Shapes等大部分小型基本函數,但直到後來我嘗試它時,Visual Studio報告說代碼中有102個以上的錯誤,等等,所以,我做錯了嗎?由於Visual Studio是我的主要編程語言,我

    0熱度

    1回答

    在Small Basic中將數組轉換爲字符串的規則是什麼? b[0] = "b0" b[2] = 1 a[0][0] = "a" a[0][1] = 123 a[1][2] = "True" a[1][3] = b TextWindow.WriteLine(a) '0=0\=a\;1\=123\;;1=2\=True\;3\=0\\\=b0\\\;2\\\=1\\\;\;;