跳到正文

个人记录

我的清奇码风

HearTheWindSing约 1 分钟
原文
文章信息与版本

文章信息

发布
2020年2月14日
收录
2026年9月23日
更新
2026年11月13日
篇幅
约 1 分钟

版本

  1. v1当前

大括号:

C++
int main(){
    return 0;
}

逗号:

C++
int a,b,c;

运算符:

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

三目运算符:

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

变量声明:

C++
int a=0;

cout,cin:

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

include:

C++
#include <iostream>

for:

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

while:

C++
while (1){
    ;
}

if else:

C++
if (n==1){
    ;
}
else if (n==2){
    ;
}
else{
    if (n==3){
        ;
    }
    else{
        ;
    }
}
原文