Queue - c++ program, C/C++ Programming

Queue - C++ program:

Write a program to show the basic operations on queue.

namespace stack {

 const int max_size = 200;

 char v(max_size);

 int top=0;

 void push (char c)  { v[top++]=c;      }

 char pop (){return v[top--]; }

 }

 

void f()

{  stack::push('a');

   cout<

}

void main()

{  f();

}

 

Posted Date: 10/19/2012 3:03:03 AM | Location : United States







Related Discussions:- Queue - c++ program, Assignment Help, Ask Question on Queue - c++ program, Get Answer, Expert's Help, Queue - c++ program Discussions

Write discussion on Queue - c++ program
Your posts are moderated
Related Questions
I need Computer application/program. Project Description:                                                                I want a project done. It is a computer desktop appli

Normal 0 false false false EN-IN X-NONE X-NONE MicrosoftInternetExplorer4

THIS PROGRAM IS TO COMPARE THE TWO DATES GIVEN BY THE USER #include #include #include struct date  {   int dd;   int mm;   int yy;  }; date compare(date d1,date d2)  {

What is Ms dos?

write a program which has three classes

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets (''a''-''z'') and the asci

c program to implement least cost method


E x p r e s sion and their types: An expression will be in form of mathematical expression with C++ syntax embedded with it. Expressions are of following types which m