easy_syntax

Crates.ioeasy_syntax
lib.rseasy_syntax
version0.1.0
sourcesrc
created_at2018-02-11 13:00:51.782481
updated_at2018-02-11 13:00:51.782481
descriptionEasy syntax
homepage
repositoryhttps://github.com/aprokurov/easy_syntax
max_upload_size
id50665
size5,451,898
Adel Prokurov (aprokurov)

documentation

README

Easy Syntax

Easy syntax it's a library for rust to use some input and sound things more easily!

Function input() create empty string and you can use your kerboard input

extern crate easy_syntax;
use easy_syntax::input::input;
fn main() {
   let name = input();
   println!("{}", name);
}

Function raw_input() create empty string and then format it to u32

extern crate easy_syntax;
use easy_syntax::input::raw_input;
fn main() {
   let num1 = raw_input();
   let num2: u32 = 10;
   let out = num1 * num2;
   println!("{} * {} = {}", num1, num2, out);
}

Function music_play() plays music, see examples, function play() do same thing as music_play.

Commit count: 0

cargo fmt