view tangotests/aa1.d @ 183:3cdf4b0c75a1 trunk

[svn r199] Fixed: still some small issues with string literals implicitly converting to different pointer types. Should be fixed now!
author lindquist
date Wed, 07 May 2008 20:22:42 +0200
parents a8cd9bc1021a
children
line wrap: on
line source

module tangotests.aa1;

extern(C) int printf(char*,...);

void main()
{
    int[int] map;
    map[1] = 1;
    map[10] = 1;
    map[11] = 11;
    map[14] = 41;
    map[21] = 12;
    map[23] = 32;
    map[32] = 23;
    map[201] = 102;
    foreach(k,v; map)
    {
        printf("%d:%d ", k,v);
    }
    printf("\n");
}