Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

queue in c++

#include <queue>

queue<int> q;
q.push(10);
q.push(20);
q.front(); // 10
q.back(); // 20
while (!q.empty())
	q.pop();
 
PREVIOUS NEXT
Tagged: #queue
ADD COMMENT
Topic
Name
8+6 =