show_all.h
来自「制作的是工厂管理系统,根据实际的需要」· C头文件 代码 · 共 33 行
H
33 行
void show_all(emp_node *h) //输出职工的列表
{
const int L=10;
if(!h)
{
cout<<"目前没有职工:";
return;
}
cout << setw(L) <<"编号"<< setw(L) << "年龄" << setw(L) << "性别" <<setw(L)<< "名字" << setw(L) << "生产量" <<setw(L)<<"职位"<<endl;
for(;h;h=h->next)
{
cout<<setw(L)<<h->data.id<<setw(L)<<h->data.age ;
if(h->data.sex==0)
cout<<setw(L)<<"女";
else
cout<<setw(L)<<"男";
cout<<setw(L)<<h->data.name<<setw(L)<<h->data.products<<setw(L)<<h->data.job;
cout<<endl;
}
cout<<endl;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?