October 01, 2003 scanf | ||||
---|---|---|---|---|
| ||||
Heres silly question. I'am trying to input a string using scanf. "%s" in D does not seem to work for char[]. What format string should I be using in D. Or does D have a better method for console input? Thanks, James |
October 01, 2003 Re: scanf | ||||
---|---|---|---|---|
| ||||
Posted in reply to james | <james@jnngill.com> wrote in message news:blepb7$1hi4$1@digitaldaemon.com... > Heres silly question. I'am trying to input a string using scanf. "%s" in D does > not seem to work for char[]. What format string should I be using in D. Or does > D have a better method for console input? > > Thanks, > > James > There's stream.stdin.readLine() or stream.stdin.readString(length) |
Copyright © 1999-2021 by the D Language Foundation