删除了冗余的代码

修正了readme中的错误
This commit is contained in:
jackfiled 2022-05-09 09:44:58 +08:00
parent 63a563de9f
commit 229c87c97a
7 changed files with 5 additions and 24 deletions

View File

@ -52,7 +52,7 @@ git clone http://10.3.255.244:8801/2021211180/2021211180.git
cd 20212111180
mkdir build # 创建编译的文件夹
cd build
cmake .. -G "MinGW MakeFiles" # 在第一次生成之后就不必再使用"-G"参数指定编译类型
cmake .. -G "MinGW Makefiles" # 在第一次生成之后就不必再使用"-G"参数指定编译类型
cmake --build .
```

View File

@ -40,5 +40,4 @@ void UpBus(rail_node_t* rail_node);
* @param rail_node
*/
void DownBus(rail_node_t* rail_node);
int sum(int a,int b);
#endif //AUTO_PILOT_BUS_BUS_H

View File

@ -17,7 +17,7 @@
int FCFSFunction(rail_node_t rails, up_bus_t up_queries, down_bus_t down_queries);
/**
* 朢ă短寻ćľćé´äĽ<EFBFBD>ĺ<EFBFBD>çšç­çĄćŽ§ĺ<EFBFBD>ĺ˝ć°
*
* @param rails
* @param up_queries
* @param down_queries
@ -26,13 +26,12 @@ int FCFSFunction(rail_node_t rails, up_bus_t up_queries, down_bus_t down_queries
int SSTFFunction(rail_node_t rails, up_bus_t up_queries, down_bus_t down_queries);
/**
* 顺便服务çšç­çĄćŽ§ĺ<EFBFBD>ĺ˝ć1¤7
* 便
* @param rails
* @param up_queries
* @param down_queries
* @return
*/
int SCANFunction(rail_node_t rails, up_bus_t up_queries, down_bus_t down_queries);
int add(int a,int b);
#endif //AUTO_PILOT_BUS_CONTROLLER_H

View File

@ -40,6 +40,4 @@ rail_node_t *FindNode(int id);
int add(int a, int b);
int power(int a, int b);
#endif //AUTO_PILOT_BUS_RAIL_H

View File

@ -1,7 +1 @@
#include "bus.h"
int sum(int a,int b)
{
int sum=b+a;
return sum;
}

View File

@ -2,7 +2,3 @@
// Created by ricardo on 2022/5/6.
//
#include "controller.h"
int add(int a,int b)
{
printf("%d",a+b);
}

View File

@ -6,8 +6,3 @@ int add(int a, int b)
{
return a+ b;
}
int power(int a, int b)
{
return a*b;
}