Created
February 23, 2020 01:27
-
-
Save BasixKOR/562be6e30f4ed1fe859e8b880d8d499b to your computer and use it in GitHub Desktop.
Buffered Standard I/O Quickstart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::io::{stdin, stdout, BufRead, BufWriter, Write}; | |
fn main() { | |
let stdin = stdin(); | |
let mut stdin = stdin.lock(); | |
let stdout = stdout(); | |
let mut stdout = BufWriter::new(stdout.lock()); | |
// your code here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment