/*
条件编译
条件编译是判断宏定义的值
*/
/*AAAAAAAAAAAAAAA
#include <stdio.h>
#define score 8
int main(int argc, const char * argv[]) {
#if score<60 && score>=0
printf("E\n");
#elif score<=69
printf("D\n");
#elif score<=79
printf("C\n");
#elif score<=89
printf("B\n");
#else
printf("A\n");
#endif
return 0;
}
*/
//BBBBBBBBBBBBB
/*
#include<stdio.h>
int main()
{
int score = 60;
if (score<60) {
printf("E\n");
} else if(score<=69){
printf("D\n");
}else if(score<=79){
printf("C\n");
}else if(score<=89){
printf("B\n");
}else {
printf("A\n");
}
return 0;
}
*/ |
|