Skip to main content

All Questions

Tagged with or
-1 votes
2 answers
57 views

How to set int array pointer within for loop in c

The following code is trying to set the test array in the first for loop, but it can't be used in the second for loop. int main() { int *test[3]; /** Try to set the array value one by ...
stackbiz's user avatar
  • 1,860
-1 votes
0 answers
53 views

JS Array .filter - editing a object of the filtered array does not reflect on the 'parent'? [closed]

I have a JS Array as follows: const cars = [ { make : "Toyota", model : "Corolla", year : 2022, active : "false" }, { make : "Tesla&...
Matt A's user avatar
  • 1
0 votes
0 answers
21 views

How Can I Use String of Coordinates Within a Mapbox Feature?

I am trying to fetch a comma separated list of coordinates from a database and then show them on a Mapbox GL JS map. By using the following FeatureCollection, I am able to show a Line between ...
trainmania100's user avatar
0 votes
1 answer
36 views

Why does the use of "enlist" in the cross-sectional engine sometimes result in errors and sometimes work normally?

I am using the cross-sectional engine and need to store multiple rows of fields as a single array vector. However, I have encountered several issues during the process: The scenarios I attempted are ...
xiao feng's user avatar
0 votes
0 answers
92 views

Upload stalling with particular binary content [closed]

I have a simple image editing web app that lets a user add an image, zoom and pan it inside a canvas and then send a dithered and indexed version to an ESP32 run screen. But the file is only saved at ...
uzumaki's user avatar
  • 2,017
3 votes
1 answer
111 views

How to convert a string in an array to variable using the array index in PHP [duplicate]

Let's say I have an array_1 containing a string which is a name of another array_2. And now I would like to convert the array index into a variable containing the array_2. I have the following working ...
Jimski's user avatar
  • 1,001
0 votes
3 answers
121 views

Array Functions

I am currently learning the new array functions in Excel. I've been learning them for a bit, but still learning. I am trying to create a dynamic YTD type report off some dummy data however I can't ...
Nathan_Sav's user avatar
  • 8,576
0 votes
3 answers
106 views

Workaround for #spill! in Excel when creating random integer array of random size (with constraints)?

How to construct a random size, random integer array with (exact) target sum value with a single Excel function (or 'best' viable/working solution given the 'known' volatile issue with this sort of ...
JB-007's user avatar
  • 2,589
2 votes
2 answers
102 views

How do you use an array formula to count the number of times SO FAR a value appears in the array up to where the value is in the array?

I'm trying to use an array formula in Google Sheets in order to get how many times so far in an array a value has appeared. Specifically, I'm using an "array" of single upper case letters (...
ah2190's user avatar
  • 25
5 votes
0 answers
349 views
+50

Why does a simple C++ const array loop break GCC 11.2 assembly output on Compiler Explorer, but not GCC 15 or MSVC/ICX?

I've been investigating the assembly output for a simple C++ loop involving a const array and const size, and I've encountered peculiar version-specific behavior with GCC on Compiler Explorer. My ...
BullRMachineR's user avatar
-10 votes
2 answers
138 views

Custom method to split a string into a string array not appending the last string to the array in C# [closed]

Decided to develop my own method that splits a string in C# into an array of strings using the StringBuilder class. The code is adding all the words to the array except the last word. An example would ...
So Few Against So Many's user avatar
7 votes
6 answers
2k views

C program: Use an array outside the scope it was defined in

I have some code in which an array of strings is defined in a conditional statement. The array is out of scope where I need it. So I defined another pointer in the outer scope. In the conditional ...
Johannes Linkels's user avatar
0 votes
0 answers
46 views

Vuetify v-autocomplete freezes with large dataset (~53k items) [closed]

I have a code like this: <v-form ref="dataFormSegment" id="form-segment" @submit.prevent="submitHandlerSegment"> <v-container fluid> <v-row justify=&...
Erdem Çağlak's user avatar
2 votes
0 answers
159 views

How can I disable / warn on std::array::operator[] for some specializations of my type that can implicitly convert to a builtin integral type?

For background, I'm building a library (that is allowed to use C++23 in its interface and implementation), and as part of its underlying building blocks, I've defined a bounded integer abstraction ...
starball's user avatar
  • 59k
-4 votes
1 answer
94 views

NumPy high-dimensional array automatically rearranges after subsetting

Today I wanted to use the following command to subset a numpy high-dimensional array, but was surprised to find that the two methods were completely different. I'm very curious why numpy reorders the ...
samll fat's user avatar

15 30 50 per page
1
2 3 4 5
27879