Categories: Homework on time

Dvc Diablo Valley College C++ Programming Homework 6 Using stack to rewrite the programI finish most of them, still have some functions dont know how to wr

Dvc Diablo Valley College C++ Programming Homework 6 Using stack to rewrite the programI finish most of them, still have some functions dont know how to write in main To complete this assignment:
Please study the code ‘Stack as Array example ‘ posted below.
You need to implement a stack template, but this time implement the stack as
a single linked list. The test of the class should be done with the same main
function, slightly modified to declare a stack object and properly call the class
functions.
There is a helper file in the module that shows you a sample definition of a
template class. This is just an example, you do not need to implement all
functionality. You could implement all functions for 5 points extra credit. If you
chose to implement the additional functions, you should test them all in the
driver ( main ) function.
****************************************************************************************
***********************
/**
* Stack implementation using array in C/procedural language.
*/
#include
#include
#include
//#include // For INT_MIN
#define SIZE 100
using namespace std;
/// Create a stack with capacity of 100 elements
int stack[SIZE];
/// Initially stack is empty
int top = -1;
/** Function declaration to perform push and pop on stack */
void push(int element);
int pop();
void display();
int main()
{
int choice, data;
while(1)
{
/* Menu */
cout
Purchase answer to see full
attachment

Don't use plagiarized sources. Get Your Custom Essay on
Dvc Diablo Valley College C++ Programming Homework 6 Using stack to rewrite the programI finish most of them, still have some functions dont know how to wr
Just from $13/Page
Order Essay
superadmin

Share
Published by
superadmin

Recent Posts

Consider the following information, and answer the question below. China and England are internation

Consider the following information, and answer the question below. China and England are international trade…

4 years ago

The CPA is involved in many aspects of accounting and business. Let’s discuss some other tasks, othe

The CPA is involved in many aspects of accounting and business. Let's discuss some other…

4 years ago

For your initial post, share your earliest memory of a laser. Compare and contrast your first percep

For your initial post, share your earliest memory of a laser. Compare and contrast your…

4 years ago

2. The Ajax Co. just decided to save $1,500 a month for the next five years as a safety net for rece

2. The Ajax Co. just decided to save $1,500 a month for the next five…

4 years ago

How to make an insertion sort to sort an array of c strings using the following algorithm: * beg, *

How to make an insertion sort to sort an array of c strings using the…

4 years ago

Assume the following Keynesian income-expenditure two-sector model:

Assume the following Keynesian income-expenditure two-sector model:                                                AD = Cp + Ip                                                Cp = Co…

4 years ago