Mega Code Archive
Categories
/
C++
/
Queue Stack
Queue of string
#include
#include
#include
using namespace std; int main() { queue
q; q.push( "A" ); q.push( "B" ); q.push( "C" ); while ( !q.empty() ) { cout << q.front() << " "; q.pop(); } return 0; }