在我的Fortran代碼,我想用鋸齒形陣列,配置多個級別。我的意思是一個示例代碼是 module nonsquare_matrix_mod
implicit none
type :: nonsquare_matrix
integer :: d
real*8, dimension(:), allocatable :: vector
end type n
public class Yearly {
public void getYearlyData() throws FileNotFoundException {
String[] state = StatesList.getValues();
int numberOfStates = state.length;
我有一個數組:String[] state,
int numPics = 3; //Populated from a query
string[] picID = new string[numPics];
//pictureTable is constructed so that it correlates to pictureTable[column][row]
string[][] pictureTab
我想創建一個2D鋸齒陣列(如前所述,因此答案在點網上比在多維網上要快)。 我要像做 Int [][] myarr = new int [2][3];
但C#似乎不支持這個,所以我做了使用for循環的第二維實例。 但是,如果我想快速重置,我不能使用memset等效,因爲循環中的每個新建都在可能的不同地點啓動陣列。 有更快的方式來初始化和重置固定寬度的鋸齒狀數組嗎?