I am trying to make a queue list and I am passing reference of link list and its not working and giving error.
In function 'void insertDataToQueue(Node**, int)':| request for member 'next' in '* temp', which is of pointer type 'Node* {aka node*}' (maybe you meant to use '->' ?)|
void insertDataToQueue(Node **queueList, int burstTime){
Node *newNode = new Node;
newNode->burstTime = burstTime;
newNode->next = NULL;
if(queueList == NULL){
*queueList = newNode;
}
else{
Node **temp = queueList;
while(*temp != NULL)
temp = *temp->next;
}
}
namespace std
)? – Caleth