Questions tagged as 'array'

0
answers

Look up numbers in the multidimensional array (multiple layers)

I would like to look up a certain number in this array ($ arrayJobsActive): Array ( [0] => Array ( [seg] => Array ( [manha] => 1 [tarde] => 1...
asked by 22.01.2018 / 21:37
1
answer

Save an array from the form in the database

I have tried in several ways to save the data that comes in the form in the database but it is not working, when I used PHP5 it worked but now converting to PHP7 stopped working, can anyone help me. The Registration form: <?php if (!isse...
asked by 09.01.2018 / 21:17
2
answers

Does the character '' (SPACE) count in the string in the C language?

For example, you will only save the first letters in the array before the space, because? Does anyone know how to explain it? #include <stdio.h> int main(void){ char nome[20]; printf("Digite seu nome: "); scanf("%s"...
asked by 15.01.2018 / 14:11
0
answers

Iterating array items related to orders

I'm having trouble iterating an array that contains other arrays inside it. foreach ($resultPedidos as $key => $rs) { $cont++; foreach ($resultadoItemPedidos as $key => $rows) { if ($rs['order_nu...
asked by 12.01.2018 / 20:54
0
answers

Return string array in c

I'm trying to return an array of strings to use later in main. Here is my function: char **separar_palavras2() { setlocale(LC_ALL, "Portuguese"); FILE *arquivo; arquivo = fopen(ftexto, "r"); int i = 0, j = 0; char* linhas[50]; char line[200...
asked by 27.12.2017 / 02:20
1
answer

Add row and column values and store in vector

Good afternoon, I'm doing an algorithm in which I need to store the total sums of each row and each column in different vectors. For example: vector of 5 positions receives the total of the sum of 5 rows of the matrix, each result stored in a...
asked by 03.01.2018 / 19:02
1
answer

Delphi _How to pass data to a property of type record array

unit Exemplo; interface uses Classes, SysUtils, typinfo; const type {TRecordRateio} TRecordRateio = Record IdContaCorrente : Integer; CodBanco : String; Agencia : String; DVAgencia...
asked by 18.12.2017 / 01:54
0
answers

Check neighbor in an array

I have the following problem: I have a large array [10x10 for example] It has values from 1 to 9. I should check if a vector [1, 2, 3, 4, 5] (for example) is contained in this array. When I find the first number of the vector inside the ar...
asked by 08.12.2017 / 03:10
1
answer

How do I print array on screen, segment and location chosen, one at a time?

<div class="col-md-2 col-sm-2"> <form method="post" action="atracoes_resultados.php"> <h4>Escolha o Segmento:</h4> <input type="checkbox" name="csg[]" value="ecologico"> Ecológico<br>...
asked by 06.12.2017 / 06:43
2
answers

Give Name as number in Array foreach

I have this foreach below that lists results of a Select, I would like to name it according to the number, as I did below in the IF, but it still did not work .. foreach($result as $row) { $segurado[] = $row['SEGURADO']...
asked by 01.12.2017 / 20:03