C++ is funny in the way that when you declare a variable like in Java, it is automatically initialized as well! So all you need to do is, DataType MyArrayName[width][height]; where width and height are integers defining the lengths. Width is how many arrays are in the upmost array and height is how many elements of DataType are held by each array in the width-array. An actual example would be, "int myArray[3][4]". This variable is called myArray, and holds 3 arrays of length 4 which hold intege
所有评论 (48)
登录或注册马上射条评论!