Can you show the code?
#include<iostream>
#include<iomanip>
using namespace std;
struct details
{
int roll_no ;
int marks;
int age ;
char name[30];
char address[50];
};
int main()
{
details student[3];
for(int i = 0 ; i < 3 ; i++)
{
gets (student[i].name);
gets(student[i].address);
cin>> student[i].marks;
cin>>student[i].age ;
cin>> student[i].roll_no ;
}
cout<< " showing details "<<endl;
cout<< setw(15)<< "NAME"<<setw(20)<<"Address"<<setw(10)<<"Age"<<setw(10)<<"Roll_NO"<<setw(10)<<"MARKS"<<endl;
for(int i = 0 ; i < 3 ; i++)
{
cout<< setw(15)<< student[i].name<<setw(20)<<student[i].address<<setw(10)<<student[i].age <<setw(10)<<student[i].roll_no <<setw(10)<<student[i].marks<<endl;
cout<< endl;
}
}