Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Scanf {
- public var stream:Array<String>;
- public function read() {
- if(stream.length == 0) {
- var str = Sys.stdin().readUntil(10);
- for(i in 0...str.length) {
- stream.push(str.charAt(i));
- }
- }
- return stream.shift();
- }
- public function new() {
- stream = new Array();
- }
- }
- class Main {
- public function new() {
- var a = new Scanf();
- trace(a.read(),a.read(),a.read());
- }
- static public function main() {
- new Main();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement