Skip to content

VitorMob/Stack-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

Stack

Help

for usage stack create obj Stack stack(2) and allocate 1

for stack up stack.push(0x15)

for unstack stack.pop()

example

  #include "include/stack.hpp"
  
  int main()
  {
   Stack stack(6);
  
  stack.push(0x42);
  stack.push(0x4f);
  stack.push(0x4d);
 
  std::cout << (char)stack.pop() << (char)stack.pop() << (char)stack.pop() << std::endl;
 
  return 0;
 }

Compiler example

mkdir build

cd build

cmake ..

make

Notes

Stack based in intel 8080

Releases

No releases published

Packages

No packages published

Languages