Cinner (pronounced "Sinner") is an utility to write I/O operation in C++ style

It features C++ like style for cin and cout



Why?

Also, I wanted to learn more "advanced" Rust lmao

I learnt:

Usage

You can use:

```rust use cinner::{cin, cout};

fn main(){ let mut i = 0; cin >> &mut i; cout << i << "\n"; } ```

As opposed to:

rust fn main(){ let mut holder = String::new(); let i = std::io::stdin().read_line(&mut holder).trim().parse::<i32>().unwrap(); println!("{}", i); }

Also it's recursive, so you can do:

```rust use cinner::{cin, cout};

fn main(){ let mut i = 0; let mut j = 0_f32; cin >> &mut i >> &mut j; cout << i << "\n"; } ```

If you have any suggestions, DCDA

© 2022 Sarad (Chronos Ltd.)