Skip to content

Commit

Permalink
<ostream>のprint(ln) : 出力先を指定する例を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
faithandbrave committed Feb 1, 2023
1 parent 88c0244 commit bc47b38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion reference/ostream/print.md
Expand Up @@ -77,14 +77,16 @@ namespace std {

int main()
{
std::print(std::cout, "Hello {} World\n", 42);
std::print(std::cout, "Hello {} World\n", 42); // 標準出力に出力
std::print(std::cerr, "Hello {} World\n", 42); // 標準エラーに出力
}
```
* std::print[color ff0000]

### 出力
```
Hello 42 World
Hello 42 World
```

## バージョン
Expand Down
4 changes: 3 additions & 1 deletion reference/ostream/println.md
Expand Up @@ -45,14 +45,16 @@ namespace std {

int main()
{
std::println(std::cout, "Hello {} World", 42);
std::println(std::cout, "Hello {} World", 42); // 標準出力に出力
std::println(std::cerr, "Hello {} World", 42); // 標準エラーに出力
}
```
* std::println[color ff0000]

### 出力
```
Hello 42 World
Hello 42 World
```

## バージョン
Expand Down

0 comments on commit bc47b38

Please sign in to comment.