Questions tagged as 'array'

1
answer

Repeated data when traversing an array and displaying them in a list

I have the following code: (also available in Codepen ) const agregar=document.querySelector('#agregar') const inputAgregar=document.querySelector('#inputAgregar') const listaUl=document.querySelector('#listaUl') var datosArray=[...
asked by 18.06.2017 / 20:40
3
answers

Help with multiplication table in c ++

I need to create a multiplication table with a matrix in such a way that it looks like this: But I can not make the table of 0 appear, this is my progress: #include <iostream> using namespace std; main() { short A[12][12...
asked by 13.07.2017 / 16:36
1
answer

Delete repeated item entered by user

I'm recently watching C programming and we started with the fixes, there is an exercise where I have an N-size array with repeated numbers (entered by the user), what I'm asked to do is that the user enter a number and verify in the fix if it is...
asked by 26.05.2017 / 21:32
1
answer

Using preg_match_all () in an Array (Notice: Array to string conversion in) php

I'm looking for help to resolve the message:    Notice: Array to string conversion in <?php $response = '{"data":[{"access_token":"EAAby7f21xKABALPCThZC63i4LZAHZC7MaYbQ0E5gN","id":"515968102105625"},{"access_token":"EAAby7f21xKABAK0zyf...
asked by 17.11.2017 / 06:02
2
answers

csv data file as array in Python

Hello everyone I have a question, I have a data file of 4 columns (time, x, y, z) and I made an array to divide the time into small parts / strips and I want to count the data numbers that there are part / fringe I thought I would use a counter...
asked by 20.01.2017 / 22:50
1
answer

Object String Array Conflict

I have a problem with my program, and that is that I am modifying an arrayString of one of my objects (use positioning because it is an array of objects and each object has an array String initialized with space ""). What I intend to do is, put...
asked by 18.12.2016 / 16:32
1
answer

Compare array in php

I have these two arrays that I need to compare to erase the differences. Array1 which is equivalent to everything in mysql Array( [0] => Array ( [id] => 133 [que] => Codigo [idcosa] =...
asked by 09.01.2017 / 21:53
1
answer

Count Array data

I need a way to reduce a array and unify and count the matches in a% new matriz , this is the data: Reduce a array of a API , convert them to matriz and count the names of the countries and leave only the countries...
asked by 19.11.2016 / 17:47
1
answer

How to serialize an array in JQuery with the same PHP schema?

way to serialize an array in PHP $value = array(array('Nombre','Adam'),array('Nombre','Exael')); echo serialize($value); /*a:2:{i:0;a:2:{i:0;s:6:"Nombre";i:1;s:4:"Adam";}i:1;a:2:{i:0;s:6:"Nombre";i:1;s:5:"Exael";}} */ Now I need to serializ...
asked by 24.10.2016 / 20:22
3
answers

Help Structura and Vector in C, Simple program of Students and Notes

How to make a vector? In what way do you do not go putting nota1;nota2;nota3;etc ? I made 2 codes, but they do not work for me. How to do with the theme of the average? 1) Enter the data of the students of an establishment consisting of...
asked by 26.10.2016 / 04:13