c/c++ >?= 含义
#include<stdio.h>
#include<stdlib.h>
int main()
{
int i,j;
i=2; // i=3,5
i>?= 3;
printf("%d\n",i);
system("pause");
return 0;
}
执行结果分别为 3,3,5
说明 >?= 有种过滤功能,i大于等于3时值不改名,小于3时变为3
同样 <?= 一样
c/c++ >?= 含义
#include<stdio.h>
#include<stdlib.h>
int main()
{
int i,j;
i=2; // i=3,5
i>?= 3;
printf("%d\n",i);
system("pause");
return 0;
}
执行结果分别为 3,3,5
说明 >?= 有种过滤功能,i大于等于3时值不改名,小于3时变为3
同样 <?= 一样