Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
8
Task/Input-loop/D/input-loop-3.d
Normal file
8
Task/Input-loop/D/input-loop-3.d
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import tango.io.Console;
|
||||
import tango.text.stream.SimpleIterator;
|
||||
|
||||
void main (char[][] args) {
|
||||
foreach (word; new SimpleIterator!(char)(" ", Cin.input)) {
|
||||
// do something with each word
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue