修改了PrintState函数
This commit is contained in:
parent
30c7d92bfd
commit
9e6faf16bf
|
@ -155,7 +155,7 @@ void PrintState(char *str)
|
||||||
rail_node_t *p = NULL;
|
rail_node_t *p = NULL;
|
||||||
char target[25], clockwise[25], counterclockwise[25];
|
char target[25], clockwise[25], counterclockwise[25];
|
||||||
|
|
||||||
for (count = 0, p = rails; flag==1 || p != NULL; p = p->next_node, count++)
|
for (count = 0, p = rails; flag==1 || p != rails; p = p->next_node, count++)
|
||||||
{
|
{
|
||||||
flag=0;
|
flag=0;
|
||||||
target[count] = '0';
|
target[count] = '0';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user