Questions tagged as 'array'

0
answers

How to invert the positions

I'm doing a LFA (formal and automated languages) work, which recognizes GLUD languages only now I'd like to make it recognize GLUE languages, which would basically just change the position of the uppercase letter (target state). PS: the progr...
asked by 30.09.2017 / 18:11
1
answer

Passing array list per parameter

I have the following problem: I need to pass some files (xmls and pdf) from my winforms application to a webservice. The problem is that you can not pass via parameters to a WS data type such as List < >. In this case, I'm going t...
asked by 26.09.2017 / 15:21
0
answers

how can I create and model a table with attributes in the database with the PDO using array?

I have already got this method following some examples that I saw there but I still do not understand very well how I'm going to go through this array and make the table attributes public static function Colluns($database,$tables) { #'id_pes...
asked by 18.08.2017 / 18:14
0
answers

Array vector has n elements, but lenght returns "n + 1" in C

Hello, I have the following question: I have a vector and I'm sure it is passed to it only one element through the following loop: char uid[1]; while(indice1 < indice2){ printf("Valor de indice 1 %d, indice 2 %d\n", indice1, indice2)...
asked by 26.08.2017 / 13:47
1
answer

How to filter values by keyword in array?

The codes below are not working very well the way I want: $array = array('January', 'February', 'March', 'April', 'May', 'June'); function filterDataByValue(array $array, $value) { $filtered = array_filter($array, function ($var)...
asked by 29.08.2017 / 00:25
1
answer

Consume WebService in SOAP with HTTPRIO in DELPHI

I'm having a difficulty with a request via webservice / soap . I'm trying to feed a function from a WSDL from Vtex through Delphi and it always returns me that a value has not been filled. Code of my function Insert Field function...
asked by 28.08.2017 / 19:38
0
answers

How to start an array in another class - java

I'm trying to implement the depth first algorithm to solve a labyrinth, like the one below, where the starting position is S and the output is E _SW______\n _WWW_W_WW\n _____W__E\n In the MazeReader class I read the .txt file for the Maze a...
asked by 12.06.2017 / 17:18
3
answers

Problem trying to get value from an array

I'm trying to work with an array that I get by POST, but I'm not able to get the values contained within the array. When I give print_r($_POST) I get:    Array ([access] => Array (['KMEntrance'] => 1000 ['ActionTime '] = >   2017...
asked by 16.06.2017 / 19:49
1
answer

Adapt the user input to the size of an array

I've created a program that generates mazes that can be solved, but now I'm not able to implement a way for the maze size to be defined by the user. The code below is the ActionListener of a button that when clicked asks the user the s...
asked by 16.06.2017 / 18:25
1
answer

Vector of struct and pointer to char

Why this syntax is wrong: #include <stdio.h> typedef struct { char* nome; char* numero; }Agenda; void adiciona(Agenda* reg, int i) { scanf("%s", reg[i]->nome); scanf("%s", reg[i]->numero); } void imprime(Agenda*...
asked by 03.06.2017 / 00:22