home
I have a struct and the instance of that struct: type Obj struct { ssid string code string ...
This question already has an answer here: Ensuring embedded structs...
So I am trying to use a pointer to a struct of MonsterAttacks as the data that belongs to an...
Today someone commented on this code and suggested it would be better in an enum: typealias...
I am pretty new to using typedef struct, so I hope you'll be able to give pretty basic explanation...
How can I create a method UnmarshalJSON inside a struct, use json.Unmarshal inside without causing...
I’ve the following structure which I created manually the values like app service runner...
19 hours ago

Understanding struct

So I understand the basics of struct or so I thought. Our teacher posted some code today and didnt...
The following does not compile: public struct Foo { public static implicit operator Foo(string...
I read the answer to some of the similar questions but my question is little different due to fact...
This question already has an answer here: Nested class' access to...
I don't know why the below happens, and I can't find source code relative. Can anybody explain to...
I'm trying to figure out best practices in C(11). Because there are no namespaces I can think of...
I'm trying to create a shared memory for IPC. I want to put a structure with dynamic 2D array in it...
Why people use only one character to represent the current instance in method of struct?...
I have multiple structs that have one common field; let's call it common here type Struct1 struct...
Is there a simple way to get a time of day (12:21, 7:15, 23:56,...etc) using structures in C++? I...
Can I get some advise? Instead of returning the vector from the function as a pointer or a...
I have a structure with 2 fields which have a value. I would like to implement a method that...
I am trying to assign the values to the structure array in managed c# and accessing the same in the...
** I Tried a lot but code is not working perporly can you help me out ** always show...
For the following struct, since v is a dynamically allocated object, how would the memory alignment...
I am trying to implement a linked list in C - starting simple, with one list containing one node....
I am trying to create a array of elements with a type known only at the run time (a pkg API gets to...
I have a circular buffer implementation in C where each element itself is an array of...
for an assignment for university I'm writing some code. The point is to have a linked structure...
There are 2 structs in my code; card(value, suit) and deck(**cards, n), and I am trying to shuffle...
This question already has an answer here: what is the difference...
I have to write a program which will compare weight of persons with required weight. When the...