登录
首页 » c++ » C++做的火车车厢调度系统

C++做的火车车厢调度系统

于 2022-10-05 发布 文件大小:147.49 kB
0 175
下载积分: 2 下载次数: 1

代码说明:

本程序的任务是:假设停在铁路调度站入口处的车厢序列的编号依次为1,2, 3…n。设计一个程序,求出所有可能由此输入的长度为N的车厢序列。     若实现车厢调度的基本要求,所以需要建立一个栈来实现。栈的特性是先进 后出,而根据栈的特性,进栈与出栈都有两种可能:一个数进栈后,要么立即出 栈,要么进行下一个数的进栈;同样一个数出栈后,在栈不为空的情况下要么继 续出栈,要么进行下一个数的进栈;输入一个车厢长度,从而得到由此输出长度 为n的车厢序列,并定义一个二维数组来保存所有的输出序列。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • MATLAB
    matlab进行多因素重复试验的方差分析的一个实例(matlab for multi-factor analysis of variance of repeated trials one instance)
    2013-08-16 16:36:27下载
    积分:1
  • 用stm8s103写的C代码
    用stm8s103写的C代码,带AD,LED,中断。
    2022-04-21 23:12:00下载
    积分:1
  • 各类排序算法比较
    本代码实现并比较了直接插入排序,选择排序,冒泡排序,快速排序,两路合并排序,堆排序,同时可视化比较了他们的时间复杂度,代码完整可行,有可执行文件直接运行。
    2022-10-10 13:35:03下载
    积分:1
  • cartoon
    二维卡通任务交互设计系统,实现直线,多边形绘制算法(橡皮筋效果),实现基于鼠标交互的卡通人物设计与绘制。使用颜色填充与反走样技术对卡通人物外貌以及衣着进行绘制。实现对卡通人物轮廓的交互控制,点击鼠标左键可以对人物五官位置进行拖拽移动调整。点击鼠标右键可以对卡通人物进行放缩等操作。(Two-dimensional cartoon task interactive design system realizes straight line, polygon rendering algorithm (rubber band effect), and cartoon character design and rendering based on mouse interaction. Using color filling and anti-aliasing technology to draw the appearance and clothing of cartoon characters. To realize the interactive control of cartoon character contour, clicking the left mouse button can adjust the position of the five features of the characters by dragging and dragging. Click the right mouse button to zoom in and out the cartoon characters.)
    2021-04-15 20:18:54下载
    积分:1
  • 陈敏物联网仿真
    与陈敏《OPNET物联网仿真》配套的源码(this is source code of the booke of <OPNET IOT Simulation>)
    2020-09-16 13:07:55下载
    积分:1
  • MFC多个树控件的应用
    MFC对话框中多个树控件的应用,希望对大家有帮助。总共有三级树控件,上层树控制下层树。
    2022-11-01 23:05:09下载
    积分:1
  • C# WPF 图片旋转、放大、扭曲、平移、不透明蒙版等
    这是一个C#图像处理程序,把一张图片平移、顺时针角度旋转、按一定角度扭曲、使用不透明蒙版等功能,以下是实现具体功能的代码,把这些处理功能封装到按钮事件中:   private void button2_Click(object sender, RoutedEventArgs e)   {//缩放图像    if (this.button2.Content=="放大图像")    {    ScaleTransform MyScaleTransform = new ScaleTransform();    MyScaleTransform.CenterX = this.image1.Width / 2;    MyScaleTransform.CenterY = this.image1.Height / 2;    MyScaleTransform.ScaleX = 1.5;    MyScaleTransform.ScaleY = 1.5;    this.image1.RenderTransform = MyScaleTransform;    this.button2.Content = "缩小图像";    }else{    ScaleTransform MyScaleTransform = new ScaleTransform();    MyScaleTransform.CenterX = this.image1.Width / 2;    MyScaleTransform.CenterY = this.image1.Height / 2;    MyScaleTransform.ScaleX = 0.5;    MyScaleTransform.ScaleY = 0.5;    this.image1.RenderTransform = MyScaleTransform;    this.button2.Content = "放大图像";    }   }   private void button3_Click(object send
    2023-01-22 02:10:03下载
    积分:1
  • DES加密
    通过DES加密算法原理,运用C++实现DES加密算法。(Based on the principle of DES encryption algorithm, the DES encryption algorithm is implemented with C++.)
    2020-06-18 18:40:01下载
    积分:1
  • Lmoddulate_66T
    LTE下行链路OFDMM中的调制方式64QAM (Modulation the LTE downlink OFDMM in way 64QAM)
    2012-09-15 14:48:33下载
    积分:1
  • SLALG
    Simple algorithm of wsn to localize mobile targets
    2015-02-05 17:13:03下载
    积分:1
  • 696516资源总数
  • 106668会员总数
  • 21今日下载