Questions tagged as 'array'

2
answers

Call value from another page [closed]

Hello everyone. I'm having a problem with passing data from one page to another. I have already tried for session and not very sure and I will explain the reason: I have a news page that distributes them for a for $ arr [] where I embed the t...
asked by 17.09.2015 / 06:56
1
answer

Doubt about the use of 'for' in voting system

I want to make a program where the user gives the number of candidates and their names, and then the voting is started until the user types end. Help? #include<stdio.h> #include<string.h> int main() { char nome[30][30]; ch...
asked by 07.06.2015 / 20:43
2
answers

Does not display the string, in C

I'm having trouble copying string in C, this does not want to work. #include <stdio.h> #include <stdlib.h> int main() { int count; char str1[20] = "Hello World", str2[20]; for(count = 0; str1[count]!='#include <stdi...
asked by 17.05.2015 / 19:28
1
answer

Filling array with different, but same-range data in PHP

I have the following code that is working perfectly, but I need the results inside the $arrayDiasSemestre to be '1' for the monday, '2' for the tuesday and so on ... $inicio = new DateTime($start_date); $fim = new DateTime($end_date);...
asked by 29.11.2014 / 17:31
1
answer

In MongoDB, how to search for documents by the size of an Array

I have a collection of documents that are nodes of a graph, where each node has its list of adjacencies: { '_id': ObjectId('547ce6f4ffaba82f360fc525'), 'adj': ['no_2'], 'nome': 'no_1' } { '_id': ObjectId('547ce6f4ffaba82f360fc526'), 'adj': ['n...
asked by 02.12.2014 / 01:19
1
answer

Error adding strings to an array

My activity of an Android application has this code. public class gerenciar2 extends ActionBarActivity{ boolean editar=false, adcionar=false, remover=false; SQLiteDatabase Banco = null; Cursor cursor; String tabbanco="Tabela1...
asked by 05.11.2014 / 19:20
3
answers

Search for information by content and not by array position

I want to search for a certain word in a different way, I just got the one described below: <% mystring = "Como eu faço para separar uma string em várias strings?" myarray = Split(mystring, " ") For i = 0 to Ubound(myarray) Response.Write...
asked by 05.11.2014 / 19:54
2
answers

How can I return data that is within arrays?

I'm using this code to pull features of a particular product: <?php $array = array( 'key' => '46dfg456465g4d654d65f4564dfg', 'module' => 'imoveis', 'method' => 'listar_origens' ); $client = new SoapClient...
asked by 26.12.2014 / 14:27
1
answer

Problem with Getters and Setters of an Array

I'm having trouble accessing arrays in a singleton class Class Info public class Info { private static Info cinfo; private String[] first_name; private String[] last_name; private String[] nickname; public static Info getInstance() {...
asked by 19.07.2014 / 06:47
1
answer

Array Out of Bounds reading Archive

I'm having a problem with my code, in my text file that I read the last line is blank, and so it should not be read, however I'm getting out of bounds . Sample file line:    Fernando & 60.9 & 166 Class main: public static void main(...
asked by 27.09.2014 / 02:41