Tagged Questions

0
votes
4answers
96 views

How to pass many arrays to a function effectively?

I have to work with arrays,with so many arrays My question is that is it possible to access them with their names. For example I have this arrays a1,a2,a3,...,a40 and I want to pass them into a ...
0
votes
3answers
528 views

JavaScript Multi-Dimensional Array

I have a Student, who is in many courses, which have many Modules for each course. So far, I have got: var myStudent = new MySchool.Student("Bart", "Simpson", "0800 Reverse", "Some Street", ...
1
vote
2answers
180 views

2D Array neighboring algorithm

I have a 2D array like this: 0,1,0,0,1 1,0,1,0,1 0,1,1,0,1 0,1,0,1,1 1,1,0,0,1 If we extract the coordinates of all the 1's we get: (height,width) 1,2 1,5 2,1 ... So now I want to find the ...
0
votes
1answer
68 views

2D Array - Does not updating quantity as i want

I got a shopping cart code that using a 2D Array to store user order in a Session! We have some const here: CONST CART_Product_ID = 0 CONST CART_Product_NAME = 1 CONST CART_Product_PRICE = 0 CONST ...
0
votes
1answer
352 views

sliding window over 2d array in vb.net

I'm having problems with sliding a variable sized window over a 2D array in vb.net. my porblem is when I take the first element of the array at 0,0 what ever the size of the window is it needs to be ...
-2
votes
1answer
56 views

2D array is truncating some characters

I just need to know how to fix this. #include<stdio.h> #include<stdlib.h> #define PRICE 1985.95 #define MAX_LENGTH 20 #define MAX_EMPLOYEES 25 #define MAX_WEEKS 7 void getNames(int* ...
0
votes
0answers
85 views

How to sort a 2-d array in java when column is specified by the user?

I was wanting to sort a 2-d array by column. The array comes from a csv file and some columns are strings, some are integers, and some are double. The user should be able to specify the column ...
-1
votes
0answers
44 views

2d array to simulate linked list for stack construction

I'm trying to implement 2d array to simulate linked list for stack and I faced several difficulties doing so. How do I implement from Top to Bottom ordering? How do I check random index value for ...