新手求教
/////////////////////////////////////////////////////////#define turn1 2
#define turn2 4
int line_count_sign; line_number
int counter(int a){return a+1;}
//////////////////////////////////////////////////
出错位置语句如下:
if (line_count_sign==1){line_number=counter(int line_number);}
if(line_number==turn1){turn_a_right_angle_sign=1;turn_letf_or_right_sign=1;}
else if(line_number==turn2){turn_a_right_angle_sign=1;turn_letf_or_right_sign=0;}
//////////////////////////////////////////////////////////////////////
错误提示如下:
"guide_main.c", line 49: error: expected an expression
"guide_main.c", line 50: error: expected an expression
"guide_main.c", line 51: error: expected an expression
敬请各位大侠帮忙
谢谢!!!!!!!!!!!!!11
----------------解决方案--------------------------------------------------------
#define turn1 2
#define turn2 4
int line_count_sign; line_number//这里貌似应该是逗号
int counter(int a){return a+1;}
----------------解决方案--------------------------------------------------------