Tagged Questions
0
votes
0answers
7 views
Constructing a list with an array of a string
I'm having some issues trying to modify a function. Basically right now there is an array of string that is created in the function and then used to create a list from it.
Here is the code:
...
1
vote
4answers
53 views
Manipulate multidimensional array in a function
I read a lot of stuff in here and tried many but i couldn't find a way to pass a multidimensional array to a function in C,change some of the values and somehow return the new array.
It's important to ...
0
votes
2answers
22 views
Array formula in excel suddenly not working… troubleshooting
I am currently using this array formula..
{=LARGE(IF(('Data Input'!$L$3:$L$15000=$B10)*('Data Input'!$H$3:$H$15000>$C10),'Data Input'!$O$3:$O$15000,0),1)}
Where B10 is a text ID, like 658A and ...
2
votes
4answers
71 views
Why doesn't this PHP recursive function return the value?
I was working on an API for ustream which returns the following array
Array
(
[results] => Array
(
[0] => Array
(
[id] => 33756327
...
4
votes
5answers
77 views
Javascript: How to get the parent key inside a function?
I've some functions, stored in a collection/array and would like to get the key (function-name) without retyping it. Is there any short way to access it?
var functions_collection = {
...
0
votes
2answers
45 views
Jquery Random Array Delete
var items = ["1","2","3","4","5","6","7","8","9","10","11","12"];
function bigger(){
for(var i=0;i<items.length;i++){
a = [Math.floor(Math.random() * items.length)+1];
scale(a); ...
1
vote
2answers
30 views
PHP: Pull values foreach() nested array, run function, return a 2nd level nested array
I've got an array that looks like this:
Array
(
[0] => Array
(
[id] => abc
[name] => Charlotte
[state] => NC
)
[1] => Array
(
...
-1
votes
1answer
77 views
Array pointer changes values when passed as parameter to other function
My problem is that when I am passing a pointer array "q" collected by function "sense" to other function "move" , the values in "q" gets randomly changes. Any response will be heartily appreciated.
...
0
votes
1answer
60 views
Fortran function arrays
I am trying to write a function which has a scalar input but an array output.
My example is:
Ts(theta) = reshape((/ dcos(theta)**2.d0, dsin(theta)**2.d0, -dsin(2.d0*theta)/2.d0, &
...
0
votes
4answers
49 views
Variable size array, from a function, called from a function
I know this is a bit long, but it's a tricky problem. Thanks for looking! I've been working on this far too long. I've done a lot of research and tried a lot of things, hopefully somebody can help ...
0
votes
3answers
64 views
Need to fix JavaScript so that the array begins at the right position
Hi I have got a jsFiddle to share but never used it before so I hope I did it right..
http://jsfiddle.net/Mayron/3V62C/
I also have these screen shot to better show what I mean:
...
0
votes
3answers
51 views
Passing few numbers as a one array argument to function
Hi i want to pass from on to ten arguemnts to a function which will be saved in array.
function( 4, 3, 5); //calling function and passing arguments to it.
void function(int array[10])
{
...
1
vote
2answers
69 views
Convert Array into Ul-Li
i have an array like this
Array
(
[0] => Array
(
[name] => Region
[id] => 3
[parent_id] => 2
[children] => Array
...
0
votes
0answers
22 views
Changing info in an Array in local storage a with checkbox click
I have two arrays that correspond 1 to 1, one has class names, one has a "y" or "n" if it's been taken. These two arrays are turned into strings with JSON.stringify in the local storage then parsed ...
-2
votes
1answer
44 views
2D array allocation function with one malloc in C
I need to define function for allocation 2D array, but it should call malloc only once.
I know how to allocate it (-std=c99):
int (*p)[cols] = malloc (sizeof(*p) * rows);
But i can't figure out ...