Monthly Archives: March 2014

Double Linked List – Tm 02

#include #include struct data { int x; data *next, *prev; }*head, *tail, *curr; void push_front(int x) { data *add=(struct data*)malloc(sizeof(struct data)); add->x=x; add->next=add->prev=NULL; if(head==NULL) { head=tail=add; } else { add->next=head; head->prev=add; head=add; } } void push_back(int x) { data *add=(struct … Continue reading

Posted in Uncategorized | Leave a comment

OOP TM 02

TM 02 Copy constructor suatu klas dieksekusi jika obyek klas di-copy dengan mekanisme di bawah ini kecuali a. direct assignment                           b. initialization c. passing by value                              c. return by value Fungsi anggota yang otomatis di-create oleh kompilator meskipun ia tidak … Continue reading

Posted in Uncategorized | Leave a comment

Linked List

#include <stdio.h> #include <stdlib.h> struct node { int x; struct node*next; }; int main() { struct node *root; struct node *conductor; int flag = 0; root = (struct node*)malloc(sizeof(struct node)); root->next=0; do { printf(“Insert Number [1 – 100] :”); scanf(“%d”,&root->x);fflush(stdin); … Continue reading

Posted in Uncategorized | Leave a comment

OOP TM 01

­­­­TM 01 1. Ada tiga istilah yang saling berkaitan saat kita mulai mempelajari OOP yaitu ADT (Abstract Data Type), encapsulation dan class. Coba uraikan secara rinci apa yang dimaksud istilah-istilah tersebut. Selain itu berikan contoh-contohnya.  2. Ada tiga karakteristik yang … Continue reading

Posted in Uncategorized | Leave a comment

Hello world!

Welcome to Binusian blog. This is the first post of any blog.binusian.org member blog. Edit or delete it, then start blogging! Happy Blogging 🙂

Posted in Uncategorized | 1 Comment