Pixiv:千夜QYS3
这个头文件的内容比较简单,只是增加了一种写代码的方式。
这个头文件只定义以下宏。
| 你可以写成这样 | 原本符号 |
|---|---|
| and | && |
| or | || |
| not | ! |
| bitand | & |
| bitor | | |
| xor | ^ |
| compl | ~ |
| not_eq | != |
| and_eq | &= |
| or_eq | |= |
| xor_eq | ^= |
//引入iso646.h
long i=16,j=-16,k = 2,m = 16,n = -16;
while(i >= 0 and j < 0){
i bitand k;
i and_eq k;
j bitor k;
j or_eq k;
compl m;
n xor k;
n xor_eq k;
printf("%d %d %d %d\n",i,j,m,n);
k++;
}
原文:https://www.cnblogs.com/AlienfronNova/p/14382509.html