6,562 questions
Advice
2
votes
11
replies
388
views
I can't understand structure padding in C/C++
I watched a few tutorials on YouTube. They said to assume a 32-bit architecture and then said "a single CPU cycle can only access a word (equals the CPU's native size i.e 4 bytes) at a time from ...
Advice
0
votes
3
replies
104
views
Fortran: (or other languages) how to handle a linked list with allocatables instead of pointers?
(UPDATE: after various suggestions, some solutions were added at the end. It does seem to be possible to avoid pointers altogether, but it still is not completely ideal...)
In the question Can I ...
0
votes
0
answers
72
views
Create custom Pivot table with tree structure
I created a pivot table like the one in the image.
The data part was done this way
The pivot representation works for me because for each product, line, or family (iPad->iPad Air->iPad Model), ...
0
votes
0
answers
70
views
Debugging Structure formulas in Jira Cloud
In the non-cloud version of Jira, Structure had a debug feature where you could step through the Jira formula's execution and see the values in each variable. That feature either doesn't exist in ...
2
votes
4
answers
167
views
Why does including header with a structure definition not lead to a redefinition error?
I have simple program to make a point with x and y coords and function to move it.
There are three files:
main.c
structs.h
structs.c
structs.h Has the definition of structure
typedef struct point{
...
1
vote
1
answer
51
views
Lightroom plugin to create published collection set
I'm beginning with programming with Lua and want to create a plugin that loops through a folder structure and creates Published collection sets (and smart collection sets afterward).
I've come this ...
0
votes
2
answers
62
views
Can I transition a toggle (with onclick) between two different grid structures?
I can't seem to find a way to achieve the transition between two different grid structures. The toggle is working fine; I'm simply toggling the class of the divs within the outlining grid-div where ...
2
votes
1
answer
123
views
Error: Invalid dot name structure assignment because the structure array is empty
I'm having this error but I don't understand why. I'm creating a structure of size 3x4x4 with 6 fields within loops. Then, I would like to create two more fields for the whole structure. How can I do ...
3
votes
1
answer
146
views
How does the restrict keyword in C behave differently with pointers to structures compared to pointers to primitive types? [closed]
I’m trying to understand the nuances of the restrict keyword in C, particularly how its behavior might differ when applied to a pointer to a structure versus a pointer to a primitive type like int.
...
0
votes
1
answer
95
views
Joining tables with Bigquery Materialized View
I have data like this:
ID
Text
Result
I Want
1
abc
null
Passed
1
Passed
Passed
Passed
1
def
null
Passed
2
ghi
null
Failed
2
jhg
null
Failed
2
Failed
Failed
Failed
There are several ways to do this I ...
1
vote
1
answer
111
views
What are the drawbacks of implementing dequeue using procedure int? [closed]
I'm trying to implement a queue and for dequeue I've purposely done with an int procedure. What would be possible drawbacks for using an int?
int dequeue(queue *q) {
int res = 0; // list not empty
...
-1
votes
2
answers
199
views
How to Validate if a List Matches a Given Structural Pattern?
I am trying to write a Python function to validate whether a given list follows the same structure as a predefined "model" list, which in my particular case is:
model = [
["h", ...
0
votes
0
answers
71
views
Convert nested structures and arrays in coldsfusion
I am not proficient at using structures and arrays but got something to work. Any tips for improving this?screen grab of nested structure
<cfset data = DeserializeJSON(_JSNresponse)
<cfloop ...
0
votes
1
answer
148
views
How to compare table structure between two different environments without using db links and not having central repository in an automated manner
How to compare table/columns/index/constraints structure across two different environments in oracle without using db link and not having central repository where data files can be stored.
We cannot ...
2
votes
1
answer
80
views
How to pass a structure by reference to an included library function?
My C program uses a dynamically allocated array of structures. I'm trying to pass a pointer to a specific member of the array to a function that is in an included library, and I'm getting compiler ...