What happens when you attempt to compile and run the following code?
#include
#include
#include
#include
#include
using namespace std;
int main()
{
deque
stack
stack
stack
stack
fourth.push(10);fourth.push(11);fourth.push(12);
stack
fifth.push(10);fifth.push(11);fifth.push(12);
while(!fifth.empty())
{
cout< fifth.pop(); } while (!fourth.empty()) { cout << fourth.front() << " "; fourth.pop(); } return 0; }
Currently there are no comments in this discussion, be the first to comment!