Evaluation:
Published: 02.04.2004.
Language: English
Level: Secondary school
Literature: n/a
References: Not used
  • Samples 'Stacks in C++ ', 1.
  • Samples 'Stacks in C++ ', 2.
  • Samples 'Stacks in C++ ', 3.
  • Samples 'Stacks in C++ ', 4.
  • Samples 'Stacks in C++ ', 5.
  • Samples 'Stacks in C++ ', 6.
Extract

//variables
int value;
//asking for value
cout << "nnEnter value to push : ";
cin >> value;
//new node decleration
stack_node *new_node;
// Allocate memory for the new node.
new_node = new stack_node;
/*I have seen some processors specially AMD chipsets
sometimes gives error for basic stack dynamic programming,
also sometime we get system error due to the status of the
RAM, By looking at this posibility i include this error here */
if(new_node == NULL)
{
// If memory allocation problem, set error
// status and proceed to exit the function.

Author's comment
Send to email

Your name:

Enter an email address where the link will be sent:

Hi!
{Your name} suggests you to check out this eKönyvtár paper on „Stacks in C++”.

Link to paper:
https://eng.ekonyvtar.eu/w/898019

Send

Email has been sent