Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void nhap(int *a, int &n)
- {
- cout<<"nhap so phan tu mang"<<endl;
- cin>>n;
- a=(int*)calloc(n,sizeof(int));
- for(int i=0;i<n;i++)
- {
- cout<<"a["<<i<<"]=";
- cin>>*(a+i);
- }
- }
- void hienmang(int *a, int n)
- {
- for(int i=0;i<n;i++)
- cout<<*(a+i);
- cout<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement