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
What if one can''t wrap the local in an artificial block?

1. The shell must support the following internal commands: i. cd - Change the current default directory to . If the argument is not present, report the current directory. If t

Scope Rules and Storage Classes The storage class verifies the life of a variable in terms of its duration or its scope. There are four storage classes : automatic static


After p = new Fred[n], how does the compiler know about n objects to be destructed throughout delete[] p? A:  The run-time system hold the number of objects, n, somewhere where


Design and implement a library system that does the following: ? Takes details of a student/library users: first name, last name, other names, user ID number, and nationality. Th

When you are designing a generic class to have or otherwise manage objects of other types, when the format and behavior of those other types are unimportant to their containment or

#questi An array of n numbers is given, where n is an even number. The maximum as well as minimum of these given numbers need to be determined. Which of the following is true about