It is necessary to create a function, adding elements to the queue, an error is displayed: "The expression must be valid for changing the left-hand value" My function, which I tried to create:
void add(int* integer) { current = new queue; current->value = integer; current->next = NULL; if (last == NULL) { head = current; } else { last->next = current; last = current; } } Queue structure:
struct queue { int value[10]; queue *next; };