File tree Expand file tree Collapse file tree 2 files changed +46
-1
lines changed Expand file tree Collapse file tree 2 files changed +46
-1
lines changed Original file line number Diff line number Diff line change 3131| ` SEEK_END ` | ファイルの終端を指定するための整数定数 | |
3232| ` TMP_MAX ` | ` tempnam() ` 関数によって生成できる一時ファイル名の、実装が保証する最低限の数を表す整数定数 | |
3333| ` stderr ` | 標準エラーを表す` FILE* ` 型の式 |
34- | ` stdin ` | 標準入力を表す` FILE* ` 型の式 |
34+ | [ ` stdin ` ] ( /reference/cstdio/stdin.md ) | 標準入力を表す` FILE* ` 型の式 |
3535| [ ` stdout ` ] ( /reference/cstdio/stdout.md ) | 標準出力を表す` FILE* ` 型の式 |
3636
3737
Original file line number Diff line number Diff line change 1+ # stdin
2+ * cstdio[ meta header]
3+ * std[ meta namespace]
4+ * macro[ meta id-type]
5+
6+ ``` cpp
7+ #define stdin /* implementation-defined * /
8+ ```
9+
10+ ## 概要
11+ 標準入力を表す`*FILE`型のオブジェクト。
12+
13+ マクロとして定義されているため、std名前空間には存在しない。
14+
15+ ## 例
16+ ```cpp example
17+ #include <cstdio>
18+
19+ int main() {
20+ int n;
21+ std::FILE* fp = stdin;
22+ std::FILE* fp2 = stdout;
23+ std::fscanf(fp, "%d", &n);
24+ std::fprintf(fp2, "%d\n", n);
25+ }
26+ ```
27+ * std::stdin[color ff0000]
28+ * std::fprintf[link /reference/cstdio/fprintf.md.nolink]
29+ * std::fscanf[link /reference/cstdio/fscanf.md.nolink]
30+ * std::fprintf[link /reference/cstdio/fprintf.md.nolink]
31+
32+ ### 入力
33+ ```
34+ 123
35+ ```
36+
37+ ### 出力
38+ ```
39+ 123
40+ ```
41+
42+ ## 処理系
43+ - [Clang](/implementation.md#clang): ??
44+ - [GCC](/implementation.md#gcc): ??
45+ - [Visual C++](/implementation.md#visual_cpp): ??
You can’t perform that action at this time.
0 commit comments