- Program Struct
- int *iPtr //iPtr pointer menunjuk objek bertipe integer
- char *S // S pointer menunjuk objek bertipe char
- Rational *rptr //rPrt pointer menunjuk objek rational
1. Pointer
2. Struct Node
3. Struct Simbol
int B=4;
int *C, D;
int A=3;
C=&A;
cout<<C;
D=&B;
cout<<D;
B=-5; A=-7;
cout<<D<<C;
int *C, D;
int A=3;
C=&A;
cout<<C;
D=&B;
cout<<D;
B=-5; A=-7;
cout<<D<<C;
2. Struct Node
Struct Node {
int info;
Node * berikut;
}
Node *A;
Node A;
A.info;
A.berikut = NUUL;
int info;
Node * berikut;
}
Node *A;
Node A;
A.info;
A.berikut = NUUL;
3. Struct Simbol
Struct Simbol {
int info ;
Node * berikut ; }
Simbol *p = new Simbol;
p-> info =3;
p->berikut=NULL;
int info ;
Node * berikut ; }
Simbol *p = new Simbol;
p-> info =3;
p->berikut=NULL;
0 Response to "Pertemuan Ke-6 Struktur Data"
Post a Comment