#include <cstdlib>
#include <iostream>
#include <string.h>
using namespace std;
struct mahasiswa{
string nama;
int nim;
string kelas;
};
int main(int argc, char *argv[]){
mahasiswa satu,dua;
cout<<"Masukan nama :";
cin>>satu.nama;
cout<<"Masukan nim :";
cin>>satu.nim;
cout<<"Masukan kelas :";
cin>>satu.kelas;
cout<<endl<<endl;
cout<<"Nama = "<< satu.nama << endl;
cout<<"NIM = "<< satu.nim << endl;
cout<<"Kelas = "<< satu.kelas << endl;
cout<<endl<<endl;
cout<<"Masukan nama :";
cin>>dua.nama;
cout<<"Masukan nim :";
cin>>dua.nim;
cout<<"Masukan kelas :";
cin>>dua.kelas;
cout<<endl<<endl;
cout<<"Nama = "<< dua.nama << endl;
cout<<"NIM = "<< dua.nim << endl;
cout<<"Kelas = "<< dua.kelas << endl;
system("PAUSE");
return 0;
}
Tidak ada komentar:
Posting Komentar