struct Node
{
int data;//转速值
unsigned int timeCount;//计时计数
int riseFallIndex;//方向 -1:下降 0:不变 1:上升
Node()
{
data = 0;
timeCount = 0;
riseFallIndex = 0;
}
};
这个初始化没通过?请问怎么初始化
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
struct Node
{
int data;//转速值
unsigned int timeCount;//计时计数
int riseFallIndex;//方向 -1:下降 0:不变 1:上升
Node()
{
data = 0;
timeCount = 0;
riseFallIndex = 0;
}
};
这个初始化没通过?请问怎么初始化
struct Node
{
int data;
unsigned int timeCount;
int riseFallIndex;
}Node;
struct Node node = {0,0,0};