Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <fstream>
- using namespace std;
- int main()
- {
- int n;
- string s1;
- cin>>n;
- char **names = new char* [n];
- for (int count = 0; count < n; count++)
- names[count] = new char [20];
- char in='a';
- for (int i=0;i<n;i++)
- {
- for (int j=0;j<5;j++)
- {
- cin>>names[i][j];
- }
- }
- int *ages= new int [n];
- for (int j=0;j<n;j++)
- {
- cin>>ages[j];
- }
- for (int i=0;i<n;i++)
- {
- for (int j=0;j<5;j++)
- {
- cout<<names[i][j];
- }
- cout<<" "<<ages[i]<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement