📄 show_all.h
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -