#user-input #header-file #cs50

call_input

Get user input in rust like that of cs50 header file

1 unstable release

0.1.0 Jun 1, 2023

#27 in #header-file

MIT license

5KB
151 lines

call_input

Get user input in rust

Installation and usage

$ cargo add call_input

mod call_input;

fn main() {
    let n = call_input::get_i32("Enter your number:");
    let s = call_input::get_string("Enter your string:");
    let f = call_input::get_float("Enter your float:");
}

No runtime deps