Dou you mean something like that. (And thank you for your quick answer):
void make_bookingliste()
{
struct typer *liste = malloc(400 * sizeof(struct typer));
/* Disse konstanter definerer vore øvre og nedre grænse. Bruges til rand() */
const int LOW = 1;
const int HIGH = sizeof...
Hello;
I´m struggling with a program, which I want to return a struct.
My program looks like this:
void make_bookingliste()
{
/* Disse konstanter definerer vore øvre og nedre grænse. Bruges til rand() */
const int LOW = 1;
const int HIGH = sizeof (personer) / sizeof (struct...
Hello,
I'm making a program with a structure. I would like to copy SOME of the elements in the structure to another structure, fx if it fulfill some criteria. The program could be something like:
struct vehicles
{
const char *name;
const int year;
};
struct vehicles car[] =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.