for (int i=0; i<room; i++)
{
cout<<setw(4)<<i+1<<"\t";
in>>numcomp;
for(int j=0; j < numcomp;j++)
{
cout<<setw(9)<<j+1<<":";
if (ptr[i][j].userID=NULL)
{
cout<<"Empty"<<"\t";
}
else
{
cout<<ptr[i][j].userID<<"\t";
}
}
cout<<endl;
}
I have try NULL but it is not working. Can I know how to do it.
This post has been edited by ogn: 03 October 2016 - 08:53 AM

New Topic/Question
Reply


MultiQuote





|