📄 main.c
字号:
/********************************主程序*********************************/
#include"D2.H"
#include"D1.H"
#include"D0.C"
void main()
{
SqStack input,temp,output;
int i;
printf("--------------------------------------------------------------------------------");
printf("*****************************CARRIAGE ARRANGE***********************************\n");
printf(" ---GuangDong University of Technology刘勇彬\n");
printf("********************************************************************************");
printf("--------------------------------------------------------------------------------");
printf("Please input the last Number of the Carriage: ");
scanf("%d",&end);
printf("********************************************************************************");
/*初始化三个栈*/
Sinit(&input);
Sinit(&temp);
Sinit(&output);
/*将车厢号码进栈*/
for(i=end;i>=1;i--)
SPush(&input,i);
printf(" The total attemper mode list as follows:\n");
Set_out(&input,&temp,&output);
printf("the total:%ld\\n",total);
getch();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -