#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */using namespace std;
struct manusia{
string nama;
string alamat;
};
void input(manusia x){
cout<<"Nama :";cin>>x.nama;
cout<<"Alamat :";cin>>x.alamat;
cout<<" Terimaksih "<<x.nama<<" Yang Tinggal di "<<x.alamat;
}
void output(manusia x){
cout<<"nama :"<<x.nama<<endl;
cout<<"alamat :"<<x.alamat;
}
int main(int argc, char** argv) {
manusia x;
input(x);
cout<<endl;
output(x);
return 0;
}
Kamis, 03 Maret 2016
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar