Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- class user{
- string name;
- string pass;
- public:
- void GetData(){
- cout<<"\tEmail : ";
- cin>>name;
- cout<<"\tPassword : ";
- cin>>pass;
- }
- void PutData(){
- cout<<" Email: "<<name<<"\t| Password :"<<pass<<endl;
- }
- };
- int main(){
- int n;
- cout<<"Enter number of user: ";
- cin>>n;
- user one[n];
- for(int i=0;i<n;i++){
- cout<<"\nlogin "<<i+1<<" :"<<endl;
- one[i].GetData();
- }
- cout<<"\nlogin info : "<<endl;
- for(int i=0;i<n;i++){
- one[i].PutData();
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment