Mercurial > projects > ldc
comparison tangotests/aa1.d @ 163:a8cd9bc1021a trunk
[svn r179] lots and lots of fixes, much more of tango now compiles/works.
author | lindquist |
---|---|
date | Mon, 05 May 2008 07:36:29 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
162:1856c62af24b | 163:a8cd9bc1021a |
---|---|
1 module tangotests.aa1; | |
2 | |
3 extern(C) int printf(char*,...); | |
4 | |
5 void main() | |
6 { | |
7 int[int] map; | |
8 map[1] = 1; | |
9 map[10] = 1; | |
10 map[11] = 11; | |
11 map[14] = 41; | |
12 map[21] = 12; | |
13 map[23] = 32; | |
14 map[32] = 23; | |
15 map[201] = 102; | |
16 foreach(k,v; map) | |
17 { | |
18 printf("%d:%d ", k,v); | |
19 } | |
20 printf("\n"); | |
21 } |