hello.. i wish to to display the output in column form..but i dont understand the problem with my code.. plz help
#include <iostream>
#include<iomanip>
#include<cstring>
using namespace std;
using std::setw;
int main(){
string name;
int age,Class;
int n,i;
for(n!=0;n<=4;n++)
{
cout<<"enter your name ";
cin>>name;
cout<<"enter age ";
cin>>age;
cout<<"enter class ";
cin>>Class;
}
cout<<"name "<<setw(7)<<name<<setw(7)<<"age "<<setw(7)<<age<<setw(7)<<"Class "<<setw(7)<<Class<<endl;
for(i=!0;i<=4;i++){
cout<<name<<setw(10)<<age<<setw(10)<<Class<<endl;
}
return 0;}