queue.cpp:149: error: expected constructor, destructor, or type conversion before âQueueâ
1 2
template <class T>
Queue Queue<DataType>::Mutofront( T Muele,int n)// in this part of code
1 2
P.cpp:38: error: no matching function for call to âQueue<int>::Mutofront(Queue<int>&, int&)â
queue.cpp:160: note: candidates are: int Queue<DataType>::Mutofront(T, int) [with DataType = int]
I working with these functions to move to the front the nth element, Can some one figure out those errors
queue.cpp: In member function âvoid Queue<DataType>::Mutofront(const Queue<T>&, int)â:
queue.cpp:174: error: expected primary-expression before âelseâ
queue.cpp:174: error: expected `;' before âelseâ
You have if closing brace at the wrong position, you should move it before else
You should also enclose lines 11-15 in braces to be executed inside the for loop