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
Aim: To implement a program to add two complex numbers using constructors. Code:                       class complex {             int real;             int img;

Additional keywords in C++ Class     friend    virtual   inline private  public    protected     const this         new       delete   operator The actual use and expl

write a program that counts the number of occurences of the string in the n-th Padovan string P(n) program in java // aakash , suraj , prem sasi kumar kamaraj college progr

You are required to write a stand-alone DSP application in the C programming language. The overall objective of this application is to convert a signal from the time domain to t

Define the Data Type Modifiers in C language? There are three data types(int, float & double) above have the following modifiers. 1. short 2. long 3. signed 4. unsigned

There are 25 employees in a business. Each employee has 5 sales each day of the month (Assume there are 30 days in each month of the year). Draw a flowchart for a pr

minimum of seven number

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

dispaly the last ant on rod

This task involves char arrays and pointer based string handling. Which we use to make a simple encryption program, using a Caesar Cipher, Write a program that: a. Asks