This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
#include <iomanip> | |
#include <time.h> | |
#include <conio.h> | |
using namespace std; | |
struct toko { | |
unsigned int ID_barang, stock; | |
unsigned long no_id, tPemasukan; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ADT Pohon Biner */ | |
/* Implementasi dengan menggunakan pointer */ | |
/* Penamaan type infotype, type addrNode, dan beberapa fungsi disesuikan | |
karena melibatkan modul list rekursif. */ | |
#include "bintree.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
/* *** Konstruktor *** */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include"stackt.h" | |
void CreateEmpty (Stack *S){ | |
(*S).TOP=Nil; | |
} | |
/* I.S. sembarang; */ | |
/* F.S. Membuat sebuah stack S yang kosong berkapasitas MaxEl */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* File : stacklist.h */ | |
#ifndef _STACKLIST_H | |
#define _STACKLIST_H | |
#include "boolean.h" | |
#include <stdlib.h> | |
/* Konstanta */ | |
#define Nil NULL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include "stackt.h" | |
int main(){ | |
Stack S; | |
int n,i=0; | |
scanf("%d",&n); | |
CreateEmpty (&S); | |
while(n>=1){ | |
Push (&S,n); |