Skip to content

Instantly share code, notes, and snippets.

@nuralimajid
nuralimajid / Toserba.cpp
Created April 21, 2017 13:50
aplikasi toserba, code program toserba, aplikasi toserba dengan c++
#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;
@nuralimajid
nuralimajid / BinTree.c
Created April 21, 2017 13:28
Pohon biner, BinTree.c, Tree, bintree
/* 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 *** */
@nuralimajid
nuralimajid / stackt.c
Created March 31, 2017 09:47
stack, stackt.c, stackt, stack, c
#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 */
@nuralimajid
nuralimajid / stacklist.c
Created March 31, 2017 09:46
stacklist.c, stacklis, stack
/* File : stacklist.h */
#ifndef _STACKLIST_H
#define _STACKLIST_H
#include "boolean.h"
#include <stdlib.h>
/* Konstanta */
#define Nil NULL
@nuralimajid
nuralimajid / mstack.c
Created March 31, 2017 09:45
c, stacklist, stack, mstack
#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);