Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- class user{
- public:
- string name;
- string password;
- };
- int main(){
- user one[10];
- int n;
- cout<<"Enter number of user: ";
- cin>>n;
- for(int i=0;i<n;i++){
- cout<<"username :" ;
- cin>>one[i].name;
- cout<<"password : ";
- cin>>one[i].password;
- cout<<"\n";
- }
- for(int i=0;i<n;i++){
- cout<<one[i].name<<" ";
- cout<<one[i].password<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement