Class

#include< iostream.h>
#include< conio.h>
#include< string.h>
main()
{

class
{
public:
char judul[35],pengarang[25];
int jumlah;
}novel; //menutup class

clrscr();
strcpy(novel.judul,"Kaltiana");
strcpy(novel.pengarang,"Randhakenz");
novel.jumlah=16;

cout< cout< cout<
getch();
}

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 komentar:

Posting Komentar