PEMOGRAMAMAN BERORIENTASI OBJEK

Posted: May 12, 2008 in Uncategorized

#incude<iostream.h>

#include<string.h>

#include<iomanip.h>

#include<conio.h>

#include<stdio.h>

void main()

{

struct nilai

{

char pelajaran[10][20];

int nilai[5];

};

struct siswa

{

int nomor[5];

char nama[10][20];

nilai nilai_pelajaran;

};

siswa sw;

int jum;

int i;

cout<<“Masukan Jumlah Data=”;cin>>jum;

for(i=1;i<=jum;i++)

{

cout<<“Data ke “<<i<<endl;

cout<<“Nomor Siswa+”;cin>>sw.nomor[i];

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s