新增了power函数

This commit is contained in:
jackfiled 2022-05-08 22:01:09 +08:00
parent 82f5b2292b
commit 34a8ff18ad
2 changed files with 7 additions and 0 deletions

View File

@ -40,4 +40,6 @@ 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

@ -5,4 +5,9 @@ rail_node_t *rails;
int add(int a, int b)
{
return a+ b;
}
int power(int a, int b)
{
return a*b;
}