I am working in C++ and I want to create an initializer list for a struct of array of structs and I keep getting the same compilation error. Here is ...
I am working in C++ and I want to create an initializer list for a struct of array of structs and I keep getting the same compilation error. Here is ...
Im trying to learn doubly linked lists. I used the following to print: for reference my list struct only contains a pointer "head" and my node stru ...
I created a variadic struct based on a std::tuple. Then, I would like to use a C-style array in the member initializer list with automatic type deduc ...
my friend is studying for an exam. He keeps receiving the segmentation fault on " while (fscanf(f, "%s %d %d", A[i].costruttore, A[i].ns, A[i].costo) ...
I use the following type: In my code, I declare an array of double buffer, using the volatile keywoard (because the buffers can be updated/read asy ...
I have a problem in which there is a struct that will hold the name, age and student id. I have to take an input from the user and make that number of ...
Looking at code on examples on StackOverflow I've noticed two distinct prototypes for object deallocation: struct foo *foo_create(int); void foo_free ...
I have narrowed down my real life Rust code to the following : use std::fs::File; use std::io::{BufRead, BufReader}; struct FileHandler { input_ ...
I get LNK2005 "public: static struct Color Color::Black already defined in ***.obj Color.h file contents: What would be the correct way of impleme ...
Let's say I have this struct containing an integer. And I'm gonna create a vector containing many Element structs. Pretend that all the Element ...
I am trying to build a program which takes user input of employee details and prints it. I have separate functions for both of them. Structure is as ...
I am looking to implement something very similar to this GoPlayground example: https://go.dev/play/p/B4JOVwgdwUk However my data structure is a bit m ...
I am trying to query 3 tables to create one data set with master item data, transaction data and then serial numbers/locations. My left table is a uni ...
I want to write and read some statics from file to structs. write from structs to file is work of but write data from file isn't ok. I will be gratefu ...
I am very new to Rust and I am wondering about the warning produced by the following code before it runs. I am running version: rustc 1.67.0 (fc594f15 ...
I try to alert when something went wrong but i try to create alert i get error like this : Instance member 'present' of type 'UIViewController' cannot ...
my struct is defined like this: and I would like to change it to but it seems that something is wrong with it ...
Let's say I'm creating a struct with mostly numeric fields. Then, I'd like to initialize these different fields with values that are ASCII chars, so t ...
I have a json file which looks like this I want the output to look like below When I print the schema I get the below schema from spark Basic ...
I am using an engine for my console application. This engine can not be changed. The engine contains a class called Mesh. There's a public method in t ...