Quote:Warning: makes integer from pointer without a cast: Note->Bstnode is a node of binary tree amp is structure of queue
void enqueue(struct queue* amp,struct Bstnode* root){ if(isfull(amp)) return; else if(isempty(amp)) { amp->rear=0; amp->front=0; amp->array[amp->rear]=root; } else { amp->rear=((amp->rear+1)%(amp->capacity)); amp->array[amp->rear]=root; } }
amp->rear
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)