Questions tagged as 'array'

1
answer

How to replace empty spaces in a doubles array? - C #

I hope you can help me with a problem I have in c #. I'm creating a program for pseudorandom numbers, and all these numbers are stored inside a doubles array. The problem that I present, is that once I execute the program, it tries to look insid...
asked by 04.11.2018 / 20:25
1
answer

Function that receives as parameter a C ++ template

I'm doing a project in C ++ and I have a class called DataContext where I will have vectors that store objects of another class as member data. I want to perform a function that resieves a vector of any type of class to be able to add, search, d...
asked by 11.06.2018 / 23:34
0
answers

Save array in BD with laravel 5.5

I have a create for the registration of users where there is a MULTIPLE SELECT to assign several entities to the user. And he throws an array for each option I frame. So I have the multiple select: <label for="entity_id"&g...
asked by 02.11.2018 / 16:34
1
answer

problem with regex preg_match php

Good day to all, I have all day trying to solve how I do to find a match, for example, I have this chain $txt='1a.10.2a.210.22ac.23acd.24acd' I must validate that the value 23 is found, next to the letter C for example, but EVERYTHING among...
asked by 02.11.2018 / 00:07
0
answers

PHP Pages with index 0

I need to list results by pages; My array contains X number of results, however I can not get the index of the list to increase by a value of 10 starting from 0. For example: Pagina = 1 Inicio = 0 Fin = 10 So far we go well, the question...
asked by 09.11.2018 / 14:37
1
answer

Join fixes in PHP

I have a query that brings all the users of the database, but I need to make a comparison with another table in which there is no relationship. I do everything through php but I need to join the data from the other table with the first one, that...
asked by 27.10.2018 / 22:03
0
answers

Add array to another without creating indexes in PHP

I have a foreach () that in each iteration adds arrays of 40 elements to another array, as shown in the following code: foreach($aVideos as $aVideo) { $aVideosReproducciones[] = $this->obtenerReproducciones($aVideos); } Assuming th...
asked by 27.10.2018 / 21:12
2
answers

How to check if there is a number in an array?

I have this arrangement. The letters move only if the next position is a zero and my question is how can I check if the next position is a zero? // Part of my code System.out.println("¿A que numero desea moverla?");...
asked by 04.11.2018 / 21:40
2
answers

How to make a two-dimensional arrangement of String in C #?

I have a small problem, I hope and you can support me; The problem is that I want to make a 2-dimensional arrangement to make a table, something like this: string[][] dat = new string[][] {...
asked by 30.10.2018 / 22:49
0
answers

Sorting of names and numbers lists c #

I have the following code. Where the grades of 5 students are requested, both of course A, as of B. And the highest average is shown. My query is as follows: How do I also ask for the ordering form, either by name or by note? Code: usi...
asked by 25.10.2018 / 14:02