我的清奇码风

· · 个人记录

大括号:

int main(){
    return 0;
}

逗号:

int a,b,c;

运算符:

a=1+2-3*4/5%6<<(7>>8)&9|10^11;

三目运算符:

return a.x==b.x ? a.y<b.y : a.x<b.x

变量声明:

int a=0;

cout,cin:

cout << "Hello world" << endl;
cin >> n;

include:

#include <iostream>

for:

for (int i=0;i<n;i++){
    ;
}

while:

while (1){
    ;
}

if else:

if (n==1){
    ;
}
else if (n==2){
    ;
}
else{
    if (n==3){
        ;
    }
    else{
        ;
    }
}