PROGRAM CLASS

36106yqar2xkebp1.jpg36106yqar2xkebp1.jpg36106yqar2xkebp1.jpg

/*——————————————————*/
/* PROGRAM C++ */
/*——————————————————*/
/* Nama: M. Zakqi Hendra A */
/* Kelas:2A */
/* Tanggal: */
#include<iostream.h>
#include<conio.h>
#include<stdio.h>

class buku
{
char judul[35];
char pengarang[25];
int jumlah;

};

void main ()
{
clrscr();
buku novel;
strcpy(novel.judul,”Meriam Benteng Navarone”);
strcpy(novel.pengarang,”Alistair Maclean”);
novel.jumlah=12;

cout<<novel.judul<<endl;
cout<<novel.pengarang<<endl;
cout<<novel.julah<<endl;
}

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: