free registration html

PERTEMUAN 8 FREE REGISTRATION

Latihan atau tugas Free Registration NAMA : Tgl Lahir: Alamat : Kota : Pekerjaan: Programer Data ANALISIS IT Su...

Selasa, 01 Februari 2022

testingan

 #include<iostream>

#include<iomanip>

using namespace std;

struct Employee_str

{

 char Name[25],status[15],jumlah[2];

 int anak,gaji;

};

int main( )

{

 Employee_str employee[5];

 int loop;

 for(loop=0; loop<5; loop++)

{

 cout<<

 cout<< "NAMA " <<(loop+1)<<" : ";

 cin.getline(employee[loop].Name,80, '\n');

 cout<< "status: ";

 cin>>employee[loop].status;

 cin.ignore(80, '\n');

 cout

 }

 cout<<"\nemployee data:\n";

 cout.flags(ios::left);

 cout<<setw(15)<<"Name"<<"\tID#\n_______________\n";

 for(loop =0; loop<5; loop++)

 {

 cout<<setw(15)<<employee[loop].Name;

 cout<<"\t"<<employee[loop].IdNum<<endl;

 }

 cout<<endl;

}

Tidak ada komentar:

Posting Komentar