out

    -1熱度

    2回答

    數據: 威爾遜傑克87236.45 11 我的代碼: #include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; int main() { ofstream out; ifstream in; string Lastname,

    1熱度

    1回答

    這是一個打印出任何給定整數之間的所有偶數的程序。 import java.util.*; public class Question1 { private int i; public static void main(String[] args) { Scanner scanner = new Scanner(System.in); S

    1熱度

    2回答

    是否與起訂量的方式來對方法的順序調用返回不同的out參數? 對於一個簡單的例子獲取方法: public void OutputANumber(out int number) 輸出1,其次爲2(忽視的事實就可以返回int,它是一個例子不僅沒有真正的代碼)。 int number = 1; mock.Setup(n => n.OutputANumber(out number)); number

    0熱度

    1回答

    我的問題是我如何重定向ip的IP範圍。 我有一個代碼可以重定向到範圍內的網址,但我需要做相反的 - 重定向ip超出範圍。 東西相似: $location = 'http://www.google.com/'; $range_low = ip2long("80.87.206.35"); $range_high = ip2long("80.87.206.38"); $ip = ip2long

    0熱度

    1回答

    誰能幫我弄清楚爲什麼這個代碼錯誤是「下標超出範圍」。 (運行時錯誤9) Dim arrayU() As Variant Dim arrayX() As Variant Dim arrayW() As Variant Dim LrowU As Integer Dim LrowX As Integer Dim LrowW As Integer Dim i As Integer Dim j

    0熱度

    1回答

    我無法弄清楚...爲什麼這不起作用? 線20,在placeBoat boatCoordinates = [xBoat] [yBoat] IndexError:列表索引超出範圍 def placeBoat(): xBoat = randint(1,9) yBoat = randint(1,9) boatCoordinates = [xBoat][yBoat]

    0熱度

    2回答

    我試圖通過在他們調用的函數中加入一個響應函數來讓其他開發者更容易。我無法真正解釋我想在這裏實現的目標,但之前我已經看到過,所以我知道這是可能的。 我想要的結果是: InventoryController.Instance.AddItemToInventory(0, 5, out (InventoryOperations operation) => { switch (operation

    0熱度

    1回答

    要求: 變量不需要經過時入函數進行分配。 (與參考不同) 變量不需要在函數中分配。 (不同於) 現在,我將在下面的代碼中調用關鍵字mykw。 public class MyObj{ int myInt; public void setMyInt(int val){ myInt = val; } } public class MyObjContainer

    0熱度

    3回答

    目前我有這個代碼和生成當我的遊戲或者使用辦法不多內存(超過GB),或者如果我將它設置低,它會給出一個 WORLD_SIZE_X & WORLD_SIZE_Z = 256; WORLD_SIZE_Y = 128; 有誰知道我怎麼能改善這個,所以它不使用這麼多的RAM? 謝謝! :) public void generate() { for(int xP = 0; xP < WORLD_SI

    0熱度

    1回答

    我想從下面的板創建一個矩陣,與第一個項目座標(0,0)與下面的代碼,但我不斷收到列表索引超出範圍錯誤...有人可以幫我解決或糾正我應該先前的方式嗎? board_5x = ['orange', 'green', 'blue', 'orange', 'red', 'orange', 'blue', 'orange', 'orange', 'yellow', 'blue',