import std.stdio;
int[3] t; void foo (int i) { if (i == 3) writef("%s\n", t); else for (t[i] = 0; t[i] < 3; t[i]++) foo(i+1); } void main() { foo(0); } Sorry, yet another overhasty post
Logesh Pillay via Digitalmars-d-learn Mon, 02 Jun 2014 13:10:38 -0700
import std.stdio;
int[3] t; void foo (int i) { if (i == 3) writef("%s\n", t); else for (t[i] = 0; t[i] < 3; t[i]++) foo(i+1); } void main() { foo(0); } Sorry, yet another overhasty post