EN VI
Posts (0)

No data results!

Please check back again in feature!

Questions (6)
2024-03-12 00:00:10
You can use a compound literal: const valid_options_t my_size_opts = {.name="size", .nb=3, .list = (const char *[]) { "large", "medium", "small" } }; The form of a compound literal is (T...
Tags: arrays c# string
2024-03-13 11:30:04
If you define a function in a derived class it completely hides any function in the base class with the same name in the derived class's namespace. That means that the add member function in your Lexe...
Tags: c++ inheritance struct
2024-03-14 18:00:07
The original code is fine for C23, which is yet to be published at the time of writing, but for portability to earlier C standards, the static qualifier needs to be removed from the compound literals,...
Tags: arrays c# struct
2024-03-15 00:00:17
Simply do not do it during the initialisation. Add one assignment. typedef struct { int i_mb; int * ptr_mb; } my_struct_t; void init_struct(my_struct_t **my_struct, int * const ptr) { *my_struc...
2024-03-16 20:30:04
Can I return a struct that contains an array from a function or is it undefined behaviour? As structs and unions are passed to and returned from the function by value, it is a defined behaviour. An...
Tags: arrays c# struct
2024-03-17 12:00:07
You're getting an error because globals.h uses the type Vector3 but that type hasn't been defined at that point. You need to #include "tad.h" in globals.h since it uses types defined there. The other...
Tags: c# struct sdl

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login