Machine Based Calculator : Inpre Header Version 1.3


#ifndef inpre_h
#define inpre_h
#define nil NULL
#include "boolean.h"
#include "stdlib.h"
#include <stdio.h>
#include "string.h"
//#include <conio.h>
#include "ctype.h"
#include "math.h"


/*definisi type stack integer*/

typedef int infoint;

typedef struct iElmtStack *adiStack;

typedef struct iElmtStack
{
        infoint info;
        adiStack next;
}ElmtStackint;

typedef struct 
{
        adiStack top;
}Stackint;


/*Definisi primitif untuk stack integer*/

adiStack alokasiStacki(infoint x); 
//fungsi untuk mengalokasikan gerbong stack

void createStacki(Stackint *S);
//prosedur untuk membuat stack kosong dengan S.top diset ke nil

void popi(Stackint *S, adiStack *p);
//prosedur untuk mengambil element teratas dari stack

void pushi(Stackint *S, infoint x);
//prosedur untuk menambah elemen baru di puncak stack

#endif

One thought on “Machine Based Calculator : Inpre Header Version 1.3

  1. Pingback: Tugas Besar “Machine Based Calculator” : Kalkulator Konversi Infix ke Postfix dan Prefix « The TWOH's Computer Engineering and Science

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s