请给我一个C ++队列处理程序的代码 [英] Please give me code for a c++ queue handling program

查看:102
本文介绍了请给我一个C ++队列处理程序的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个程序代码c ++来处理有关卡车在2行紧急行和常规行中到达的2个问题
紧急电话线最多可处理6辆卡车,普通电话可处理15辆卡车
但问题是紧急线路已满时,我需要将紧急卡车重定向到常规线路.
我还需要查看有关紧急行和参考行中卡车的信息
加上以查看其位置的特定卡车的信息
该信息可能是车牌,净重,毛重,是否急件的状态
谢谢,所以:)

i need a program code c++ that handles 2 queus in it about truck arriving in 2 lines urgent line and regular one
the urgent line can handle up to6 trucks and the regular can handle 15
but the deal is when the urgent line is full i need to redirect the truck that is urgent to the regular line.
also i need to view information about the trucks in the urgent line as well as in the refular line
plus to view information of a certain truck with its position
the information maybe license plate, net weight, gross weight , state if urgent or not
thank u so :)

推荐答案


开头
start with

Console.WriteLine("Hello World");


noor_ali写道:
noor_ali wrote:

我需要一个程序


然后,我建议您开始编码.


Then I suggest you start coding.


对我来说,这听起来像是一个非常重要的现实问题,需要解决.实际上,事实并非如此.听起来像功课.您的老师给您完成这项任务的原因是,您可以学习.假设某人愚蠢到可以为您编写这篇文章,那对您没有帮助.这将使您停止学习下一次作业需要了解的知识.如果您感到迷路,则应与您的老师交谈,询问是否需要更多帮助,或者是否需要现在退出本课程并停止浪费时间和时间.

您还应该期望您的老师比您更聪明.当然足够聪明,可以用谷歌搜索他们的问题的措辞,以找到作弊的人.如果您的真实姓名是noor_ali,则应该在与您的老师交谈之前先与您的老师交谈.
This sounds to me like a really important, real world problem to solve. Actually, it doesn''t. It sounds like homework. The reason your teacher gave you this task, is so that you would learn. Assuming someone was dumb enough to write this for you, it would not help you. It would stop you learning the things you need to know for your next assignment. If you feel lost, you should talk to your teacher and ask if you need some more help, or if you need to drop out of this course now and stop wasting your time and theirs.

You should also expect that your teacher is smarter than you. Certainly smart enough to google the wording of their question to find people who cheat. If noor_ali is your real name, you should go and talk to your teacher, before they talk to you.


这篇关于请给我一个C ++队列处理程序的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆