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
Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve betw

Destructor: The purpose of destructor is to free the memory when the compiler memory is reduced or not enough to execute certain program. Sometimes there may several objects op

what is an array?

HWID Spoofer for Windows 7, 8 x64 Project Description: I want a simple program that will spoof my hardware id. I should be able to prepare the id to spoof to in the program a

Manipulators There are several classes in the iostream.h header file. One of them is ios class. This class stores the format state. For example, some bits explain the base in w

Define Bitwise-AND Operator: &:? The bitwise-AND operator (&) compares every bit of its first operand to the corresponding bit of its second operand. If both bits are 1 the mat

Operation on list - c++ program: Write a program in c to Insert value on list and list iteration. typedef struct item *node_ptr; struct item {                   int e

write a C program that can display the transpose form of a ciphertext matrix.

describe how identifiers of different data type are defined using this notaion?

What is inheritance? Class, the vehicle, which is used to execute object-oriented concepts in C++, has given a new dimension to this idea of reusability. Many vendors now offer