Questions tagged as 'array'

0
answers

I have a problem with a set of fixes

When I assign a set of letters to the first arrangement the program has no problems, the error occurs when the first arrangement text is requested again, it is already assigned and the second arrangement of characters is followed. The code is as...
asked by 25.10.2018 / 18:40
2
answers

Join 2 array without using merge or foreach

The problem is explained simply, I have two arrays: array(0,1,2,3,4); array(5,6,7,8,9); I need both arrays to make one only: array(0,1,2,3,4,5,6,7,8,9) But I can not use foreach or while, since they are arrays that contain at least 100...
asked by 29.10.2018 / 03:55
0
answers

Problems reading an array and presenting it in the view in Laravel 5.6

Good afternoon I have been working with Laravel 5.6 and I have a problem reading an array that passed from the controller to the view, the array that passes from the controller arrives in the following way: array:5 [▼ 0 => {#357 ▼ +...
asked by 19.10.2018 / 17:04
0
answers

I can not fill a simple Java array

Something simple and simple. switch(menu_ini) { case 1: // Ingresar datos!. int i; for (i = 1; i == item.length; i++) {...
asked by 20.10.2018 / 20:03
1
answer

Store SELECT in Two-dimensional Array PHP / JSON

I have been doing this query, in which I make two queries to two tables, to take in one the data of the Student and in the other the modules that it studies. What I need is for me to generate an arrangement, where for each student I store the...
asked by 18.10.2018 / 02:04
2
answers

Group Array by matches

My question goes first because I am developing a project where I need to list the medications associated with a medical formula, but after saving the data when I visualize them, I repeat the heading of the formula multiple times, for which I nee...
asked by 23.10.2018 / 07:39
0
answers

problems with resulset and matrix

Hi, I have the following code, and the problem is that I can not pass the result of the results to the matrix, then use it in another class to fill a table and generate a pdf file, It always tells me in the out print that the value is NULL altho...
asked by 16.10.2018 / 16:10
1
answer

How can I spend less memory on this graph problem?

#include<iostream> #include<vector> #include<cstring> #define TAM 1000000 using namespace std; void dfs( int,bool[] ); vector<int> adj[TAM]; int cont, N; int main( ) { int I,i,a,b,p; char oso; cin >> N &...
asked by 12.10.2018 / 09:27
0
answers

Because it marks error of java.lang.ArrayIndexOutOfBoundsException: 3

I'm trying to make a magic picture but for some reason it marks me wrong         int n = 3; int i_a = 0; int j_b = 0; int P_I = n / 2; int[][] cuadro_m = new int[n][n]; int temp = 1; for (int i = 0; i < n; i++) {...
asked by 14.10.2018 / 08:16
1
answer

PRINT DATA IN A TWO-DIMENSIONAL ARRANGEMENT

Hello guys, I'm doing this program where I have to ask the user about 5 students. The issue is that they ask me to print the data that the user gave me using a bidimiensional matrix in the following order in the second option of the menu. : s...
asked by 10.10.2018 / 06:32