#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
extern int g_a; //可以调用其他文件中的定义;此为申明
main()
{
int a,b;
scanf("%d", &a);
b = a > 60 ? 'A' : 'B'; //if判断语句的另一种写法
printf("%c", b);
system("pause");
return 0;
}
条件语句的另一种写法
猜你喜欢
转载自blog.csdn.net/qq940051592/article/details/84504656
今日推荐
周排行