2014-09-03 37 views
-5

視覺工作室需要什麼樣的標識符?我只是想從外面一個int數組0 66之間和有一個標識符的預期,但我不知道我需要放在那裏

public static void playerLocationChange(int[]) 
    { 

    } 
+0

的可能重複的[C#標識符預期?](http://stackoverflow.com/questions/1225214/c-sharp-identifier-expected) – Shaharyar 2014-09-03 18:28:02

+1

@Shaharyar諷刺的是,它似乎是確切的反向在這個問題上遇到的問題。 – BradleyDotNET 2014-09-03 18:28:52

+0

@BradleyDotNET是的,你是對的。縮短近距離投票。 – Shaharyar 2014-09-03 18:37:22

回答

3

你已經把與2個不同的號碼給參數的名稱。否則,你無法從函數中引用它。

public static void playerLocationChange(int[] myIntArrayParam) 
             //Notice the name next to int[] 
             //This is the parameter's name 
{ 

} 
相關問題