#include
#include
#include
#include
struct st
{
char name[20];
long num;
int age;
char sex;
float score;
};
int main()
{
struct st student[3],*p;
p=student;
for(int i=0;p {
cout<<"Enter all data of student :["< cin>>student[i].name;
cin>>p->num;
cin>>p->age;
cin>>p->sex;
cin>>p->score;
}
cout<<"record num name age sex score"<<"\n";
p=student;
for(int i=0;p cout<name<num<age<sex<score<<"\n";
}
Enter all data of student :[0]
1
2
3
4
Enter all data of student :[1]
E^CTerminate batch job (Y/N)? n