Skip to content

Commit e1afb4c

Browse files
committed
created scanf.md and removed nolink
1 parent b80b117 commit e1afb4c

File tree

3 files changed

+42
-2
lines changed

3 files changed

+42
-2
lines changed

lang/cpp17.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ C++17以降、言語の策定にship train modelというリリース体制が
151151
- [`<cfloat>`](/reference/cfloat.md)に、非正規化数の有無を判定するマクロ、10進数の桁数を表すマクロ、正の最小数を表すマクロを追加
152152
- [`<cstdlib>`](/reference/cstdlib.md)に、[`aligned_alloc()`](/reference/cstdlib/aligned_alloc.md)関数を追加
153153
- [`<ctime>`](/reference/ctime.md)に、[`TIME_UTC`](/reference/ctime/time_utc.md)マクロ, [`timespec`](/reference/ctime/timespec.md)構造体, [`timespec_get()`](/reference/ctime/timespec_get.md)関数を追加
154-
- [`<cstdio>`](/reference/cstdio.md)に、[`vfscanf()`](/reference/cstdio/vfscanf.md.nolink)関数を追加
154+
- [`<cstdio>`](/reference/cstdio.md)に、[`vfscanf()`](/reference/cstdio/vfscanf.md)関数を追加
155155
- `<ccomplex>`, `<cstdalign>`, `<cstdbool>`, `<ctgmath>`を非推奨化
156156

157157

reference/cstdio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
| 名前 | 説明 | 対応バージョン |
7373
|------|------|----------------|
7474
| [`printf`](/reference/cstdio/printf.md) | 書式を指定して標準出力に出力する | |
75-
| [`scanf`](/reference/cstdio/scanf.md.nolink) | 書式を指定して標準入力から入力する | |
75+
| [`scanf`](/reference/cstdio/scanf.md) | 書式を指定して標準入力から入力する | |
7676
| [`vprintf`](/reference/cstdio/vprintf.md.nolink) | 可変引数リスト`va_list`を使用し、書式を指定して標準出力に出力する | |
7777
| [`vscanf`](/reference/cstdio/vscanf.md.nolink) | 可変引数リスト`va_list`を使用し、書式を指定して標準入力から入力する | |
7878
| [`getc`](/reference/cstdio/getc.md.nolink) | ストリームから1文字入力する | |

reference/cstdio/scanf.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# fscanf
2+
* cstdio[meta header]
3+
* std[meta namespace]
4+
* function[meta id-type]
5+
6+
```cpp
7+
namespace std {
8+
int scanf(const char * restrict format, ...);
9+
}
10+
```
11+
12+
## 概要
13+
標準入力から、指定された書式文字列を使用してデータを入力する。
14+
15+
## 例
16+
```cpp example
17+
#include <cstdio>
18+
19+
int main() {
20+
int n;
21+
std::scanf("%d", &n);
22+
std::printf("%d\n", n);
23+
}
24+
```
25+
* std::scanf[color ff0000]
26+
* std::printf[link /reference/cstdio/printf.md]
27+
### 出力(test.txtは以下参照)
28+
```
29+
123
30+
```
31+
32+
### ファイル内容(test.txt)
33+
```
34+
123
35+
```
36+
37+
## 処理系
38+
- [Clang](/implementation.md#clang): ??
39+
- [GCC](/implementation.md#gcc): ??
40+
- [Visual C++](/implementation.md#visual_cpp): ??

0 commit comments

Comments
 (0)