Monthly Archives: April 2014

TUGAS TM05- PEMROGRAMAN BERORIENTASI OBYEK

Kuis dan TM 05 (Albert Hendry Harsono/1701296914/02PPT) 1. Opsi-opsi berikut adalah benar kecuali a. const Time noon(12, 0, 0); b. int setData() const; c. int getData() const; d. void print() const; 2. Dynamic array dideklarasikan mengggunakan metode berikut ini a. … Continue reading

Posted in PBO, Uncategorized | Leave a comment

TUGAS TM04- PEMROGRAMAN BERORIENTASI OBYEK

TM 04 : Class Time (PBO) (Albert Hendry Harsono/1701296914/02PPT) a. Desain klas dengan nama Time yang mempunyai tiga data anggota yaitu hour, minute dan second dengan level akses adalah private. Selain fungsi anggota baku constructor dan destructor, class Time juga … Continue reading

Posted in PBO, Uncategorized | Leave a comment

TUGAS TM03- PEMROGRAMAN BERORIENTASI OBYEK

TM 03 : ADT and Array (PBO) (Albert Hendry Harsono/1701296914/02PPT) Array adalah suatu ADT. Seperti halnya ADT lain, array mempunyai data anggota dan operasi, metode atau fungsi anggota. Elemen array diakses berdasarkan posisinya di dalam array relatif terhadap elemen pertama. … Continue reading

Posted in PBO, Uncategorized | Leave a comment

Binary Tree – Insertion Using C

//Binary Tree – Insertion Using C – 32 PPT – Albert Hendry Harsono (1701296914) #include <stdio.h> #include <stdlib.h> struct tnode{ int value; struct tnode *left; struct tnode *right; }*leaf; void insert(int key, struct tnode **leaf){ if( *leaf == 0 ) … Continue reading

Posted in Struktur Data, Uncategorized | Leave a comment

Infix to Postfix using C

Infix to Postfix using C – 32 PPT – Albert Hendry Harsono (1701296914) #include <stdio.h> #include <stdlib.h> #include <string.h> char op[50]; struct node { char data; struct node *next; }*head=0; void push(char x) { if(head==NULL) { head=(struct node *)malloc(sizeof(struct node)); … Continue reading

Posted in Struktur Data, Uncategorized | Leave a comment