Program Pertemuan 6 SDATA

Posted by Unknown on Jumat, Oktober 23, 2015 in | No comments
A. Program Struct
    1. int B=4;
        int *C, D;
        int A=3;
        C=&A;
        cout<<C;
        D=&B;
        cout<<D;
        B=-5; A=-7;
        cout<<D<<C;

   2. Struct Node {
       int info;
       Node * berikut;
       }
       Node *A;
       Node A;
       A.info;
       A.berikut = NUUL;

   3. Struct Simbol {
       int info ;
       Node * berikut ; }
       Simbol *p = new Simbol;
       p-> info =3;
       p->berikut=NULL;

0 komentar:

Posting Komentar