Skip to content

Commit fab7ca8

Browse files
committed
update
1 parent 40c8bfa commit fab7ca8

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

docs/articles/comment-tricks.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ description: C++ のプログラムで使えるコメントアウトのトリッ
88
## 範囲の ON・OFF
99
スラッシュ `/` の有無に応じて、範囲コメントの有効・無効を切り替えます。
1010

11+
#### パターン 1
12+
1113
``` C++ tab="無効"
1214
#include <iostream>
1315

@@ -38,6 +40,38 @@ int main()
3840
}
3941
```
4042

43+
#### パターン 2
44+
45+
``` C++ tab="無効"
46+
#include <iostream>
47+
48+
int main()
49+
{
50+
//*
51+
int x;
52+
53+
std::cin >> x;
54+
55+
std::cout << x * x;
56+
//*/
57+
}
58+
```
59+
60+
``` C++ tab="有効"
61+
#include <iostream>
62+
63+
int main()
64+
{
65+
/*
66+
int x;
67+
68+
std::cin >> x;
69+
70+
std::cout << x * x;
71+
//*/
72+
}
73+
```
74+
4175

4276
## 値の切り替え
4377
スラッシュ `/` の有無に応じて、左右どちらかの値を選択します。

docs/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ C++17, C++20, C++23, C++26 に関する情報を調査・提供します。
4040
- (匿名 🐠)
4141
- 野菜ジュース
4242
- MawkishWaffle
43-
- 揺らぐ藻
4443
- jacking75
4544
- Chris Ohk
4645
- IZUNA

docs/standardization/meetings.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ C++ への提案文書を議論して承認する C++ 標準化委員会の主
66

77
## 現在アクティブな提案
88
- [JTC1/SC22/WG21 - Papers 2021 mailing2021-01](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/#mailing2020-01)
9+
- 日本語での解説: [WG21月次提案文書を眺める(2021年01月)](https://onihusube.hatenablog.com/entry/2021/02/11/153333)
910
- [JTC1/SC22/WG21 - Papers 2020 mailing2020-12](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/#mailing2020-12)
1011
- 日本語での解説: [WG21月次提案文書を眺める(2020年12月)](https://onihusube.hatenablog.com/entry/2021/01/17/005823)
1112
- [JTC1/SC22/WG21 - Papers 2020 mailing2020-11](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/#mailing2020-11)

0 commit comments

Comments
 (0)