Swift: Unable to append struct instance to array
I have been having some trouble creating a temporary array of user data from Firestore. Basically I created a function that retrieves user data from a Firestore collection and then iterates through …
Start Learning to Code
I have been having some trouble creating a temporary array of user data from Firestore. Basically I created a function that retrieves user data from a Firestore collection and then iterates through …
i’m trying to sort alphabetically a linked list in C. The linked list i used is the following: struct lineList{ //structure with all the line of the input file char *line; struct lineList *…
Trying to build Array of Lists of Structs in C#. And getting a System.NullReferenceException with the best try (error on line test[i].Add(info1);) The question is not how to avoid System….
I visited this thread to know about optionals and I saw a quote from the docs, which I quote again. If your custom type has a stored property that is logically allowed to have “no value”—perhaps …
I am having trouble in code: typedef struct{ int a; int b; } Passanger; typedef struct{ int ammount; Passanger bus_array[ammount]; } Bus; The amount undeclared here.
I have 3 struct data (GOLANG) that I call A, B, and C, struct C is result array replace between struct A and B when data is similar or more than 0 then I set all result to struct C using array. …
I need to add the unappeared to the Array from this information. If there is a duplicate, the money will be summed up and then saved into one. How can I achieve this? The data may be a lot. import …
How to fix this error? I want to have an Array where i can scan the data of “students” and used therefore structs. The Problem is, that the bitfield struct in the other struct fails. Is there any way …
I’m working on my own C-project and need some design/common_C_idiom advice. The problem I’m trying to solve is to open an input date stream of a configured device. But I want to keep configuration and …
I am pretty new to using typedef struct, so I hope you’ll be able to give pretty basic explanation so I can understand better. I have declared an array variable called ExpNum[3] for my typedef …