Advertisement
Guest User

Untitled

a guest
Apr 24th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. extern crate crypto;
  2.  
  3. use std::io;
  4. use std::io::BufReader;
  5. use std::io::BufRead;
  6.  
  7. fn main() {
  8. let inputDataName = ["API to request"];
  9. let mut inputData = [String::new(); 1];
  10.  
  11. let mut inputReader = BufReader::new(io::stdin());
  12.  
  13. let mut cnt = 0;
  14.  
  15. for i in inputDataName.iter() {
  16. println!("Input {}", i);
  17. inputReader.read_line(&mut inputData[cnt]);
  18. cnt += 1;
  19. }
  20.  
  21. println!("{}", inputData[0]);
  22. println!("Hello, world!");
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement