一、逗号, 之后加空格
printf("error! score[%d] = %d\n", i, score[i]);
二、分号; 之后加空格
for(i = 0; i < student_num; i++)
三、关系运算符<、<=、>、>=、==、!= 前后加空格
if( (score[i] >= 0) && (score[i] <= 100) )
四、赋值运算符=、+=、-=、*=、/=、%=、|=、&=、^=、>>=、<<= 前后加空格
i = 0;total_score += score[i];ptr -= 1;
五、算数运算符+、-、*、/、%前后加空格
total = n + m;
total = n - m;
total = n * m;
total = n / m;
total = n % m;
六、逻辑运算符&&、||、!=前后加空格
if( (score[i] >= 0) && (score[i] <= 100) )
七、三目运算符前后加空格
num = a < b ? a :b;
八、->、. 前后不加空格
Studen_str->score = 100;Studen_str.score = 100;