#include <stdio.h>
#include <stdlib.h>
#include "tp5.c"
int main()
{
int pil;
InfoParent x,cari;
InfoChild y;
char dump;
List A;
[...]
Saturday, March 31, 2012
. c Multi Linked List
#include "tp5.h"
addressParent alokasiParent(InfoParent x)
{
addressParent p;
p=(addressParent)malloc(sizeof(ElmtListparent));
if(p!=nil)
{
[...]
.h Multi Linked List
#ifndef TP5_H_INCLUDED#define TP5_H_INCLUDED#include <stdio.h>#include <stdlib.h>#include <conio.h>#include <string.h>#define nil NULL#define info(p) (p)->info#define next(p) (p)->next#define prev(p) (p)->prev#define [...]
Friday, March 30, 2012
Bagian Main Dari program Double Linked List
#include <stdio.h>#include <stdlib.h>#include "tp4.c"int main(){ int bil,pil; char dump; address p; doublelist A; createList(&A); [...]
Bagian Contoh *.c Double Link List menggunakan ADT
#include "tp4.h"void createList (doublelist *L){ first(*L)=nil; last(*L)=nil;}address alokasi (infotype x){ address p; p=(address)malloc(sizeof(ElmtList)); if(p!=nil) [...]
Bagian Contoh *.h Double Link List menggunakan ADT
#ifndef TP4_H_INCLUDED#define TP4_H_INCLUDED#include <stdio.h>#include <stdlib.h>#include <conio.h>#define nil NULL#define info(p) (p)->info#define next(p) (p)->next#define prev(p) (p)->prev#define first(L) ((L).first)#define [...]
Subscribe to:
Posts (Atom)