dynamic-arrays Questions
6
Solved
I would like to aggregate, merge, compact some values as shown below
The input is a table and the output is dynamic array formulas on a single Cell and has a goal to aggregate other columns based o...
Petula asked 14/9, 2024 at 15:51
5
Solved
With data in A1 - B5:
A 1 //remove
A 2
B 3 //remove
B 2
C 1
How do you remove duplicates in column A, keeping the last set of values in other columns? Results should look like this:
A 2
B 2
C 1
I...
Flighty asked 25/4, 2024 at 20:14
3
Solved
The intent of this question is to provide a reference about how to correctly allocate multi-dimensional arrays dynamically in C. This is a topic often misunderstood and poorly explained even in som...
Ormolu asked 7/2, 2017 at 16:2
3
Solved
I have the following data in Excel:
The real data will go on for over 100 columns.
What I want to get is a sum of the number if it were to repeat horizontally by the number of repeats. NB: Technic...
Sherl asked 9/3, 2024 at 6:53
4
Solved
This seems like it should have a super easy solution, but I just can't figure it out. I am simply creating a resized array and trying to copy all the original values over, and then finally deleting...
Jackal asked 8/11, 2011 at 20:34
6
How do i declare a 2d array using the 'new' operator? My book says this:
int (*p)[4];
p=new[3][4];
but it doesn't make sense to me. p is a pointer to an array of 4 ints, so how can it be made to...
Wed asked 8/4, 2012 at 12:5
4
Solved
My program is running though 3D array, labelling 'clusters' that it finds and then doing some checks to see if any neighbouring clusters have a label higher than the current cluster. There's a seco...
Windbound asked 5/12, 2011 at 11:11
2
Solved
i'm building an excel model using dynamic arrays which may expand horizontally or vertically depending on the inputs
Example of the array:
1
2
3
4
5
6
7
8
I'm trying to calculate ...
Microscopy asked 8/10, 2022 at 10:27
6
Solved
First timer on this website, so here goes..
I'm a newbie to C++ and I'm currently working through the book "Data structures using C++ 2nd ed, of D.S. Malik".
In the book Malik offers two ways of...
Wellbeing asked 14/4, 2013 at 17:9
1
Trying to download files from apache.camel.
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file...
Polypetalous asked 15/8, 2022 at 5:25
6
Solved
There is a range-based for loop with the syntax:
for(auto& i : array)
It works with constant arrays but not with pointer based dynamic ones, like
int *array = new int[size];
for(auto& ...
Bugeye asked 9/4, 2013 at 14:37
3
Solved
I need to create a running product from a column of numbers (I could use a row, but a column is easier to demonstrate here.) The input might be any arbitrary array. In fact, in the application wher...
Austenite asked 15/7, 2021 at 19:46
10
Solved
I basically want a Python equivalent of this Array in C:
int a[x];
but in python I declare an array like:
a = []
and the problem is I want to assign random slots with values like:
a[4] = 1
but I...
Hymeneal asked 5/3, 2011 at 17:43
12
Solved
C++ has std::vector and Java has ArrayList, and many other languages have their own form of dynamically allocated array. When a dynamic array runs out of space, it gets reallocated into a larger ar...
Ment asked 8/7, 2009 at 20:15
8
Solved
How to create a dynamic array of integers in C++ using the new keyword?
Ballance asked 27/10, 2010 at 4:1
3
This question will seek multiple approaches LET/LAMBDA VBA UDF and Power Query Function, so there will be no single right answer, but a solicitation of approaches to be used as references.
Scott ra...
Amulet asked 7/8, 2021 at 20:43
5
Solved
Is it possible for the new function UNIQUE to be used across various columns & have the output spill into a single column?
Desired output is UNIQUE values in one single column based on all of ...
Tavy asked 4/6, 2020 at 21:57
4
Solved
Let's say 3 columns (A, B, C) are dynamic arrays and I want to create a fourth/final dynamic array formula that is the sum of these 3 columns for each row in column D. For clarity, I am looking for...
Vow asked 14/5, 2020 at 12:32
1
Solved
I'm trying to initialize a dynamically declared array with an initializer list but I noticed that I have to provide the array size with GCC or I get an error. Trying the same using MSVC does not ca...
Vegetation asked 24/3, 2021 at 12:4
11
I'm using VB6 and I need to do a ReDim Preserve to a Multi-Dimensional Array:
Dim n, m As Integer
n = 1
m = 0
Dim arrCity() As String
ReDim arrCity(n, m)
n = n + 1
m = m + 1
ReDim Preserv...
Rawson asked 4/5, 2013 at 0:1
6
Solved
First, I defined a dynamic array with 2 columns and 10 row. The integer number is set to 10 here just for example.
int** array;
int number = 10;
array = malloc(number * sizeof(int*));
for (i = 0...
Spiegelman asked 19/6, 2013 at 22:4
3
I am working on my school project and I would like to use Dynamic (not static) array. I worked with ObjectPascal, so I am used to some syntax. But now I am programming in the old TurboPascal (I am ...
Rathe asked 28/2, 2017 at 21:27
10
Solved
I have a program that reads a "raw" list of in-game entities, and I intend to make an array holding an index number (int) of an indeterminate number of entities, for processing various things. I wo...
Aria asked 21/8, 2010 at 3:23
13
Solved
Are there any C++ (or C) libs that have NumPy-like arrays with support for slicing, vectorized operations, adding and subtracting contents element-by-element, etc.?
Andie asked 23/6, 2012 at 12:15
2
Solved
I need to use dynamical arrays in Fortran 90 for cases when I can't predict exact size of array initially. So I wrote a code, which should expand allocatable array each time new element is added to...
Doralia asked 20/1, 2015 at 14:59
1 Next >
© 2022 - 2025 — McMap. All rights reserved.