Questions tagged as 'array'

1
answer

Count rows and null columns of an array

Please, help me with the following question: Write a complete C-language program that declares a square-sized array 5x5. Then, your program must populate this array randomly with 0s and 1s (the array should be different for each program run...
asked by 14.05.2016 / 06:19
2
answers

Why does not the string array read?

I am creating a code that for now needs to read the name of N companies (whose N is given). I'm trying to enter the names but the program simply does not read and is the first time I try to allocate dynamic arrays. The code is here: #include &...
asked by 07.01.2016 / 17:00
1
answer

Array? How to solve

There is this site that I am putting together where I made a joining of a code that insertion of a watermark with a form where it would be possible to choose which mark would be superimposed on the image that was uploaded. As I'm learning PHP ye...
asked by 09.01.2016 / 02:39
1
answer

Converting vector from char to string - C ++

#include <iostream> #include <string> #include <vector> using namespace std; int main () { string vet[10], aux; std::vector<char> name; int count=0, sum=0; while (count<10) { getline(cin, aux...
asked by 22.02.2016 / 14:49
1
answer

JSON manipulation

I have the following code: $Json = array(); foreach ($Dados as $ln){ $Json[label] = $ln['NOME']; $Json[value] = $ln['EMAIL']; } echo json_encode($Json); With this I have the following return: {"label":"xxxxxxxxx","va...
asked by 07.03.2016 / 19:45
1
answer

CSV file saved to the bank

I have a large CVS file and need to write it to my database the first line is the fields, which I have to validate if they are right and make some changes for example first line NAME, DATANASCIMENTO, NOMEMAE second line GUILHERME FREIRE, 02/1...
asked by 14.12.2016 / 15:21
1
answer

add to array after loop

I have some loops in my php and I want to get an array like this: Array ( [nome1] => valor [nome2] => valor ) Within a loop I've tried: $array_dos_pagamentos[nome] = $variavelnome; and in another loop $array_dos_pagamentos[...
asked by 13.01.2016 / 19:17
1
answer

How to print a JSON array?

var listaNomeProjeto = [{ "nomeProjeto": "NomeProjeto1", "subProjeto": [ "Sub Projeto1", "Sub Projeto2", "Sub Projeto3", "Sub Projeto4", "Sub Proj...
asked by 29.07.2015 / 17:55
2
answers

How to create a sub-directory tree with an Array

I have a path: C:\Users\Default\AppData\Local I want a function that takes a path equal the path above and return an Array: Output: array(5) { [0]=> string(30) "C:\Users\Default\AppData\Local" [1]=> string(24) "C:\Users\...
asked by 05.07.2015 / 21:33
1
answer

put name in the columns from a vector of objects

public class TableModelAgendamento extends AbstractTableModel { int contador = 1; int qtdFuncionario; private TOFuncionario[] func = new TOFuncionario[qtdFuncionario]; String coluna[] = new String[qtdFuncionario]; private List<TOItemAgendamen...
asked by 19.09.2015 / 02:55