Questions tagged as 'array'

1
answer

Show students' grade in C

I wanted to display the students note when I typed all the notes, in an array of 10 positions, I tried out of for, but it returns me only the last one. #include <stdio.h> #include <stdlib.h> int main() { int notas[10]; int...
asked by 16.05.2015 / 21:40
1
answer

Pass List to a sub report and call it in the main report

I have a method that generates a pdf report in a certain directory, now I need to use a sub report, but I have a hard time understanding how I can pass List as a data source to that sub relatório display it in the main report. T...
asked by 20.05.2015 / 19:42
3
answers

How to write a post from an array in the current index - input file

Next, I'm adapting a file upload system to php. All the bulk has already been created, insert and update and such, but in the middle of the logic needing a conditional to check if the input file field was used, if it is empty do nothing, if it i...
asked by 26.03.2014 / 22:01
2
answers

Subtracting arrays with different arguments

Can we subtract two arrays (or two vectors) that were written with different commands? Example: x<-array(1:4,c(4,1,1)) y<-cbind(c(1:4)) x-y "Error> non-conformable objects" Does this mean that both vectors have to use the same c...
asked by 23.03.2014 / 20:09
3
answers

How do I know if an object is an array in javascript (without jquery)?

I would like to know how I can identify whether or not an object is a array in Javascript. I know that in jQuery there is the $.isArray function. But I'd like to learn to do this without jQuery . I tried typeof a...
asked by 29.07.2015 / 14:51
3
answers

How to do a function to tell when an array is empty?

I need a function that tells you when an array is empty. But the way I tried to do it is not right, can anyone help me? function validaCampo(){ if(count(dias[])==0) { alert("O Campo Dias disponíveis é obrigatório!");...
asked by 11.09.2017 / 22:14
9
answers

Traverse an Array and check if any element is empty

Is there a native PHP function to loop through array and check if any element of this array is empty null ? Look at the code below: if(isset($_POST['btnCriaModelo'])){ $instArray = $_POST['idInstrucao']; $orderArray = $_P...
asked by 31.01.2014 / 08:47
3
answers

Array with no size limit

ClsPessoa[] Pessoa = new ClsPessoa[10]; I'm new to C # and would like some help. How can I declare an array of a class as in the example, without inserting a size limit.     
asked by 11.10.2015 / 20:48
2
answers

How is a variable pointed to a pointer?

Reading this answer about pointers and arrays in C, there is the example below where the variable ptr points to the first element of this array . int array[42] = {42}; int *ptr = a; How does this pointer identify the first eleme...
asked by 08.10.2015 / 15:41
2
answers

Problem with ArrayList

I'm learning about Array and I'm breaking my head with this code, can anyone explain why it's not working? This error appears    The type List is not generic; it can not be parameterized with   arguments in this line List<Integer...
asked by 29.09.2015 / 14:54