Questions tagged as 'array'

1
answer

How to extract a string inside a string in c? [closed]

I have the following string: char url[]="table=peliculas/&name=lo_que_sea.pdf" I want to store "what_that_is_.pdf" in a variable like that text would be different from my string ????     
asked by 15.12.2018 / 17:16
2
answers

Indefinite behavior from operators

Good morning, I am doing a program in C where I need to execute the following block of code: uint8_t local_index=0; uint8_t buffer_start[100]; uint16_t temporal_uint16; temporal_uint16 = (uint16_t) (buffer_start[local_index++] << 8)...
asked by 19.10.2016 / 22:50
1
answer

Collect the data entered in a single JOptionPane

I would like to know how I have to do to gather in a single JOptionPane all the values that I enter by keyboard and not one by one. I am starting to use the windows of the JOptionPane and I have not finished clarifying at all. Thanks! import...
asked by 24.11.2018 / 00:03
1
answer

Does this program comply with your slogan? Java Arrays [closed]

I was doing this arrays program: Write a line of code that declares an array type char and initialize it with the string constant “Estudiando cadenas” . The array must have a size that allows you to save the string without a...
asked by 27.11.2018 / 00:34
1
answer

PHP Combine data from several arrays

I have the following case, which I can not make it work. It only works with one data for each variable. I understand that I must associate the variables, but I do not know how to do it. Any suggestions? Thank you very much! <?php $...
asked by 19.11.2018 / 14:38
1
answer

How can I read a txt file from a python file?

I need to go through a file and extract the values of the arrays to save them in some variables the login.txt file which I need to go through has this structure: # user=["dirServer","usuario","passwd","rutaServer","rutaDescarga","patron"]...
asked by 15.11.2018 / 09:10
1
answer

Two-dimensional array with leading elements c ++

Hi, I have to make an array of this type arr [32] [64] where each element is a pointer. I need to make a 32x64 matrix. Each element of that matrix is a pointer to a linked list. I do not know how to declare it.     
asked by 27.10.2018 / 17:12
1
answer

How to push data in an empty array every time a function is triggered

I am trying to save a random value in an array every time a user clicks on a button but the value only remains in it at the time of execution of the function. let boton = document.getElementById('boton'); boton.addEventListener("click", inicia...
asked by 25.10.2018 / 14:59
1
answer

Filter by content Multidimensional array, Functional Programming. JavaScript

This time I need to obtain the following purpose, in principle I get an object, which led to a multidimensional array , which I need to take only some depending on its content, the text strings are dates with their value next, I would need...
asked by 02.10.2018 / 23:08
1
answer

Print Matrix

When I print this matrix, it should go vertical, as the 1s come out, but I get everything in a straight line. But if after cout << char(254); I put a endl I get spaces between each character and not together. if (x == 1) {...
asked by 08.11.2018 / 01:12