July 05, 2006 Input | ||||
---|---|---|---|---|
| ||||
How do i do the following in D? #include <iostream> int main() { int i; cin >> i; cout << "number: " << i; return 0; } thanks |
July 05, 2006 Re: Input | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jason | "Jason" <Jason_member@pathlink.com> wrote in message news:e8grq3$f2f$1@digitaldaemon.com... > How do i do the following in D? > > #include <iostream> > > int main() > { > int i; > cin >> i; > cout << "number: " << i; > return 0; > } import std.cstream; void main() { int i; din.readf(&i); dout.writefln("number: ", i); } |
Copyright © 1999-2021 by the D Language Foundation