rsio 0.1.0

A simple Rust IO helper library for console input
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use rsio::{input, input_num};

fn main() {
    println!("Hello, world!");
    let test = input();
    print!("{}", test);
    let x: i32;
    let y: i32;
    let c: i32;
    x = input_num();
    y = input_num();
    c = x + y;
    print!("结果为:{}", c)
}