敬请各位大侠帮助!!!!!!!!!!!
struct excursions{signed int direction; int remove;
} excursions;
struct deflexion{signed int direction;
int angle;
} deflexion;
struct body_coordinates{
signed long int right_x_coordinates;
signed long int right_y_coordinates;
int x_coordinates_increment;
int y_coordinates_increment;
} body_coordinates;
struct swy_body_property{
struct body_coordinates body_coordinates;
float showy_body_direction;
float swy_a;
float swy_a_direction;
float swy_v;
float swy_v_direction;
struct excursions swy_displacement;
struct deflexion swy_angle;
} swy_body_property;
报错位置为下述各句:
void body_adjust(int a,struct swy_body_property* current_property)
{
switch(a){
case 0x7777:
* current_property->swy_displacement->direction=0;
* current_property->swy_displacement->remove=0;
* current_property->swy_angle->direction=0;
* current_property->swy_angle->angle=0;
break;
case 0x7377:
* current_property->swy_displacement->direction=1;
* current_property->swy_displacement->remove=remove1;
* current_property->swy_angle->direction=1;
* current_property->swy_angle->angle=l_angle8;
break;
case 0x7773:
* current_property->swy_displacement->direction=-1;
* current_property->swy_displacement->remove=remove1;
* current_property->swy_angle->direction=-1;
* current_property->swy_angle->angle=l_angle8;
break;
case 0x7767:
* current_property->swy_displacement->direction=1;
* current_property->swy_displacement->remove=remove1;
* current_property->swy_angle->direction=-1;
* current_property->swy_angle->angle=l_angle8;
break;
case 0x6777:
* current_property->swy_displacement->direction=-1;
* current_property->swy_displacement->remove=remove1;
* current_property->swy_angle->direction=-1;
* current_property->swy_angle->angle=l_angle8;
break;
错误信息为:
"functions_source.c", line 177: error: expression must have pointer type
"functions_source.c", line 178: error: expression must have pointer type
"functions_source.c", line 179: error: expression must have pointer type
"functions_source.c", line 180: error: expression must have pointer type
"functions_source.c", line 194: error: expression must have pointer type
"functions_source.c", line 195: error: expression must have pointer type
"functions_source.c", line 196: error: expression must have pointer type
"functions_source.c", line 197: error: expression must have pointer type
"functions_source.c", line 203: error: expression must have pointer type
"functions_source.c", line 204: error: expression must have pointer type
"functions_source.c", line 205: error: expression must have pointer type
"functions_source.c", line 206: error: expression must have pointer type
"functions_source.c", line 211: error: expression must have pointer type
"functions_source.c", line 212: error: expression must have pointer type
"functions_source.c", line 213: error: expression must have pointer type
"functions_source.c", line 214: error: expression must have pointer type
"functions_source.c", line 219: error: expression must have pointer type
"functions_source.c", line 220: error: expression must have pointer type
"functions_source.c", line 221: error: expression must have pointer type
"functions_source.c", line 222: error: expression must have pointer type
20 errors detected in the compilation of "functions_source.c".
初学者 无知 敬请各位大侠指教