新增了power函数
This commit is contained in:
parent
82f5b2292b
commit
34a8ff18ad
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user