-
Recent Posts
Recent Comments
Archives
Categories
Meta
Author Archives: albertgfx
TUGAS TM08- PEMROGRAMAN BERORIENTASI OBYEK
TM 08 : Class Strings Albert Hendry Harsono/1701296914/02PPT a. Desain class String. Klas ini mempunyai dua data anggota dengan level akses private, yaitu string aktual s yang disajikan dalam bentuk pointer char * s dan len untuk menyajikan panjang string … Continue reading
Posted in PBO, Uncategorized
Leave a comment
TUGAS TM07- PEMROGRAMAN BERORIENTASI OBYEK
Kuis dan TM 7 (Albert Hendry Harsono/1701296914/02PPT) Soal Pilihan 01. Inheritance kerap kali dihubungkan dengan polymorphism. Istilah yang paling tepat untuk menyatakan inheritance sebagai polymorphism adalah a. trivial polymorphism b. universal polymorphism c. pure polymorphism d. subtype polymorphism 02. Meskipun … Continue reading
Posted in PBO, Uncategorized
Leave a comment
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
Tugas Struktur Data (32PPT) – Doubly Linked List
Download: http://pastebin.com/SpCBXAhU #include<stdio.h> #include<stdlib.h> struct node { int data; struct node *prev; struct node *next; }*head, *last; void display() { struct node *temp; temp=head; while(temp!=NULL) { printf(” %d “,temp->data); temp=temp->next; } } void insertAwal() { struct node *var,*temp; var=(struct node *)malloc(sizeof(struct … Continue reading
Posted in Struktur Data, Uncategorized
Leave a comment
TUGAS TM02- PEMROGRAMAN BERORIENTASI OBYEK
TM 02 (Albert Hendry Harsono/1701296914/02PPT) 1. Copy constructor suatu class dieksekusi jika obyek klas di-copy dengan mekanisme di bawah ini kecuali: a. direct assignment b. initialization c. passing by value d. return by value 2. Fungsi anggota yang … Continue reading
Tugas Struktur Data (32PPT) – Linked List Insertion
Tugas Tutorial Class 32PPT Input angka (maks. 10) & Output angka dengan Linked list Albert Hendry Harsono (1701296914) #include<stdio.h> #include<stdlib.h> struct node { int x; struct node *next; }; int main() { int banyak=0; int j=0; struct node *root; struct node … Continue reading