User Tools

Site Tools


user:abrunda1:portfolio:libstacks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
user:abrunda1:portfolio:libstacks [2011/12/16 00:10] – [Code] abrunda1user:abrunda1:portfolio:libstacks [2011/12/16 00:11] (current) – [Reflection] abrunda1
Line 1: Line 1:
 +======Project: Stacks Library======
  
 +A project for DATA by Andrew Brundage during the Fall 2011.
 +
 +
 +=====Objectives=====
 +State the purpose of this project.
 +<code>
 +The purpose of this project is to make a stacks library file that can 
 +be used in later programs so repetitively typing the same code over and 
 +over again is avoided
 +</code>
 +=====Prerequisites=====
 +In order to successfully accomplish/perform this project, the listed resources/experiences need to be consulted/achieved:
 +
 +  * [[http://lab46.corning-cc.edu/user/abrunda1/portfolio/libdll|libdll]]
 +
 +=====Background=====
 +State the idea or purpose of the project. What are you attempting to pursue?
 +
 +Upon approval, you'll want to fill this section out with more detailed background information. DO NOT JUST PROVIDE A LINK.
 +
 +Providing any links to original source material, such as from a project page, is a good idea.
 +
 +You'll want to give a general overview of what is going to be accomplished (for example, if your project is about installing a web server, do a little write-up on web servers. What is it, why do we need one, how does it work, etc.)
 +
 +
 +=====Attributes=====
 +State and justify the attributes you'd like to receive upon successful approval and completion of this project.
 +
 +  * libraries
 +  * stacks
 +  * doubly linked list library also called within this library
 +
 +=====Code=====
 +
 +isempty.c
 +<code c>
 +#include "standard.h"
 +#include "structs.h"
 +
 +int isEmpty(List *l)
 +{
 + l->top = l->end;
 + int status = 0;
 + if(l->top == NULL)
 + {
 + status = -1;
 + }
 + return status;
 +}
 +</code>
 +
 +
 +peak.c
 +<code c>
 +#include "standard.h"
 +#include "structs.h"
 +
 +Node *peak(Node *top)
 +{
 + return(top);
 +}
 +</code>
 +
 +
 +
 +pop.c
 +<code c>
 +#include "standard.h"
 +//#include "structs.h"
 +#include "../libdll/dll.h"
 +
 +Node *pop(List *l)
 +{
 + return(removificate(l));
 +}
 +</code>
 +
 +
 +
 +push.c
 +<code c>
 +#include "standard.h"
 +//#include "structs.h"
 +#include "../libdll/dll.h"
 +
 +void push(List *l, int value)
 +{
 + createnode(l, value);
 +}
 +</code>
 +
 +=====References=====
 +In performing this project, the following resources were referenced:
 +
 +  * URL1
 +  * URL2
 +  * URL3 (provides useful information on topic)
 +  * URL4
 +
 +Generally, state where you got informative and useful information to help you accomplish this project when you originally worked on it (from Google, other wiki documents on the Lab46 wiki, etc.)