Posts

Showing posts from October, 2017

Quizes..

here is the link for "Algorithm and Programming 1" quiz_AlgoritmaPemrograman and, here also the link for "Data Structure quize" quiz_StrukturData

eCommerce

Here is the link... EBusiness_and_eCommerce

Single Linked List examples

Berikut adalah contoh program Single Linked dengan satu simpul : -------------------------------------------------------------------------------------- #include <iostream> #include <string> #include <cstdlib> using namespace std; struct simpulNegara {     string nama;     simpulNegara* berikut; }; simpulNegara* buatSimpul(string negara) {     simpulNegara* pnegara;         pnegara = new (simpulNegara);     if (pnegara == NULL)     {         cout << "Pengalokasian " << negara              << "gagal dilaksanakan." << endl;                 exit(1); //akhir program     }         //Isi simpul     pnegara->nama = negara;     pnegara->berikut = NULL;         return pnegara; } int main() {     simpulNegara* pertama;         pertama = buatSimpul("Swedia");     cout << "Field nama : " << pertama->nama << endl;     cout << "Isi berikut &qu