typedef.cpp

Bookmark and Share
#include<iostream.h>

typedef struct data {

char *nama;

float nilai;};

main()

{data d1;

d1.nama="Budi bermain bola";

d1.nilai=78.9;

cout<<d1.nama<<" banyaknya "<<d1.nilai+22.1;}

{ 0 komentar... Views All / Send Comment! }

Posting Komentar

Powered By Blogger