Questions tagged as 'array'

2
answers

Export data from an array to a table using VBA

In Sheet1 I have a table with only the Header of each column but blank values, I run a VBA that creates an Array that has the same number of columns in the table. Is there any way to export all values from this array to the Excel table at...
asked by 10.10.2014 / 23:17
1
answer

How to fill an entire vector with malloc (sizeof (int)) with some value

I have a problem, I have no idea how to fill this vector with some value, for example, I want to fill it all with -1 (start it all with -1). The problem here is that I'm not sure exactly what the size of my vector is. typedef struct argume...
asked by 04.10.2018 / 03:26
1
answer

How to sort an array by the frequency of appearance of each element?

In order not to overstretch I'm going straight to the point, I'm trying to make a program for an exercise that has the following statement:    Build an efficient int ordenaFreq(int v[], int n) function, ie runtime   in the worst case it must...
asked by 11.09.2018 / 22:01
1
answer

Array conversion to two-dimensional array using parameter

I have a question regarding the conversion of vectors (array) to two-dimensional vectors. I need to read a string and separate the columns when there is a blank space. I did this using the split() method and it's already ok. However, w...
asked by 19.08.2018 / 16:09
0
answers

My array is not returning, if you do not select a previous value

I'm doing a "mount your pc" and have some things that are optional and if you do not select a previous one, it does not bring me the value of subtracting. Example: Cabinet Motherboard video card SDD (optional) SO (optional) sour...
asked by 14.04.2018 / 03:22
2
answers

Get PHP Array Value

Array ( [0] => [1] => Array ( [0] => #EXTM3U ) [2] => Array ( [0] => #EXTINF:-1 tvg-id="" tvg-name="BBB 18 -Aquecimento" tvg-logo"https://s9.postimg.org/4c14egx5b/big_wel...
asked by 15.01.2018 / 15:14
1
answer

How to check the size of an array of type PFA?

How do I check to see if the array PFA (Partially-full array) is full and new elements can not be added? If it is full, it should return true . boolean estaCheio(int[] data, int size){ ??? } I have 5 possible options. I belie...
asked by 28.11.2017 / 06:31
1
answer

How to make a pointer point to NULL?

I need a position of an element in a dynamic vector to be empty, so I can check if I can put an element inside it later. However, the compiler does not allow it. Here is my code: MATRIZ_ESPARSA *criar_matriz(MATRIZ_ESPARSA *matriz, int nr_linh...
asked by 06.11.2017 / 01:18
1
answer

retrieve a client name in a multidimensional array

I am creating a script to execute procedures in the database of some clients, I have the following arrays with the credentials of each one: $hosts["Cliente1"] = array("ip"=> "ip_do_cliente", "usuario" => "usuario","senha" => "12345",...
asked by 12.01.2018 / 20:29
2
answers

Vector getting a function that returns integers

I have some questions about vectors and functions. public class teste{ /*Função que retorna um vetor de inteiros com números aleatórios*/ public static int [] vetorFuncao(){ int numerosAleatorios [] = new int[10]; for(int i=0;i<10;i++...
asked by 14.12.2017 / 20:01