void Diver::checkorder() //给司机模块进行查询该司机已经接受过的订单
{
int x=0;
Pt middle;
int ddlen = divernum;
int lenth = namelen;
string name = divername;
cout << divername;
cout << "订单号\t司机\t\t生成订单时间\t\t\t\t接受订单状态\t\t受理订单时间" << endl;
for (int i = 0; i < lenth; i++)
{
if (middle.orders[i].ztai == "\0")
{
cout << "已显示所有订单,共" << x << "单" << endl;
break;
}
if (middle.orders[i].diver== name)
{
_ddd[i].checkorder();
x++;
}
else
{
continue;
}
}
}
他会查询数组中没有的名字但是为什么会输出-858993460