Posts Tagged ‘study’

Algoritma Pemrograman & Struktur Data : Pointer

April 15, 2012

Kali ini kita akan mendiskusikan tentang Pointer. Untuk materi silahkan unduh disini.

Contoh kode program C++ yang menggunakan ‘pointer’.

#include<iostream>
using namespace std;

int main()
{
int a = 50; // initialize integer variable a
cout<<“Value of ‘a’ = “<<a<<endl; // show the output of a
cout<<“Memory address of ‘a’: “<<&a<<endl; // show the address of a
cout<<endl;

int * b; // declare an integer pointer b
b = &a; // transfer the address of ‘a’ to pointer ‘b’
cout<<“Value of Pointer ‘b’: “<<*b<<endl; // show the output of *b
cout<<“Content of Pointer ‘b’: “<<b<<endl; // show the content of *b
cout<<“Memory address of Pointer ‘b’: “<<&b<<endl; // show the address of *b
cout<<endl;

int **c; // declare an integer pointer to a pointer
c = &b; // transfer the address of ‘b’ to ‘c’
cout<<“Value of Pointer ‘c’: “<<**c<<endl; // show the output of **c
cout<<“Content of Pointer ‘c’: “<<c<<endl; // show the content of **c
cout<<“Memory address of Pointer ‘c’: “<<&c<<endl; // show the address of **c
cout<<endl;
return 0;
}

 

Algoritma Pemrograman & Struktur Data : Array

April 14, 2012

Kali ini kita kan membahas tentang array atau dalam bahasa Indonesianya larik. Silahkan unduh materi disini.

Dilemma

January 29, 2011

dilemma
Since last week, I have been in dilemma. It is about my study. Study abroad is one of my big dream. Some people think that study abroad will bring a lot of benefit, not only for his / her self but also for the family. Besides we will learn a lot of new things, such as culture, language, academic atmosphere, food, social life, art, and so on. On the other hand, I have been enrolling to UI since August 2010. By the time being, right now, I am at second semester of first year my PhD program. My Prof is projecting me to complete my study for 2.5 years. (Amin…3x). But what if I got scholarship from DIKTI to study abroad in the middle of my study? What should I do? Should I take the golden chance?