An array which stores values with 2 indices

learn more… | top users | synonyms

0
votes
0answers
3 views

Animation with pcolormesh routine in matplotlib, how do I initialize the data?

I am trying to animate a pcolormesh in matplotlib. I have seen many of the examples, most of them using a 1D plot routine, and some of them with imshow(). My problem is, first, that I do not know if I ...
2
votes
1answer
26 views

Game of Life Problems in C

Im creating the Game of Life Program which I created a working copy of but im having issues making it so that the user can enter the grid's x and y(rows and columns) when I try alter my code to do it ...
0
votes
2answers
21 views

2D Arrays in Java Program

My program is supposed to gets a phrase from the user then returns to the user an encrypted code of their choice (either ROT13 or ATBASH) of the phrase they entered. My code compiles and everything ...
0
votes
0answers
19 views

copying multidimensional array

I have two function say responseA(); and responseB(); which returns a 2d and 3d array respectively. I am trying to copy (1st and 2nd) column of $responseA and (2nd and 3rd) column of $responseB to a ...
-1
votes
1answer
40 views

most repeated int in a 2D array [closed]

i am working on a java Method to take in a 2 dimesional array and return the most repeated Int in the 2D array. if 2 or more numbers are tied for the most repeating int then the int the appears the ...
0
votes
1answer
41 views

Convert 1D byte image array to 2D byte array in java

I have 1D byte array for the buffered image.I want to convert it to the 2D byte array for that i have written the code as below File file = new File("/home/tushar/temp.jpg"); try { input_bf = ...
1
vote
2answers
14 views

Printing Sepcific values on a Two Dimensional Array - Java

I have created a 2D Array as follows String names [][] = new String [5][2]; for(int i=0; i<names.length;i++){ System.out.println(names[i][1]); System.out.println(names[i][0]); } And the ...
0
votes
1answer
19 views

Logical quest - get TableCell from one dimensional index

Thats not a language specific question, but i need it for a java game. I have a table (2d array) with the dimension 3x3. So the one dimensional Indexes of the cells are: 1 2 3 4 5 6 7 8 9 When ...
2
votes
3answers
30 views

C - 2 2-Dimensional Char Arrays gets Modified

I have 2 2d char arrays I use to represent a 5x5 grid. The problem is when it comes to the last 4 line of the function (where I set values of some chars in the array, I use them for testing). Then if ...
0
votes
1answer
20 views

javascript 2D array iteration returning undefined function args

I am going through an exercise to recreate Conway's Game of Life and I have a basic strategy and I'm still very much in the "making it work" stage, so I know this looks pretty funny. The problem I'm ...
1
vote
2answers
41 views

Can't get value from javascript array using variable in brackets

function swapProd() { var image = document.getElementById("prodImage"); var dropd = document.getElementById("prodDrop"); image.src = "images/ej/" + prodArrJS[dropd.value][2] + ".jpg"; } the function ...
1
vote
1answer
37 views

Email a reminder based on the status of a cell Google apps script

I am attempting to set a simple reminder email to a technician to remind when a routine service is due. I have a 2d array and code that works, but it only sends 1 email, which is the lowest row. I'm ...
0
votes
2answers
52 views

User Selected Columns of 2D Array in C++

I am trying to write a C++ program, that will take the user defined number of columns at run time and create a two dimensional array that will have Columns = given at run time Rows = 3Columns How ...
0
votes
1answer
57 views

casting void** to 2D array of int - C

i am trying to cast a void** pointer to an int** 2D array in C here is the code that i am trying to work with (with all the extraneous bits removed): \*assume that i have a data structure called ...
1
vote
6answers
43 views

Syntax for adding values to the arraylist of array

How do you assign values to ArrayList<int[]>, like you do with 2D array anArray[0][0] = val ?

15 30 50 per page