Use [] instead of set().
authoralpar
Mon, 30 Jan 2006 09:32:26 +0000
changeset 19282e957d67d7b9
parent 1927 12f289d6187f
child 1929 84d87d6024af
Use [] instead of set().
demo/hello_lemon.cc
     1.1 --- a/demo/hello_lemon.cc	Mon Jan 30 09:31:15 2006 +0000
     1.2 +++ b/demo/hello_lemon.cc	Mon Jan 30 09:32:26 2006 +0000
     1.3 @@ -56,13 +56,13 @@
     1.4    
     1.5    LengthMap length(g);
     1.6  
     1.7 -  length.set(s_v2, 10);
     1.8 -  length.set(s_v3, 10);
     1.9 -  length.set(v2_v4, 5);
    1.10 -  length.set(v2_v5, 8);
    1.11 -  length.set(v3_v5, 5);
    1.12 -  length.set(v4_t, 8);
    1.13 -  length.set(v5_t, 8);
    1.14 +  length[s_v2]=10;
    1.15 +  length[s_v3]=10;
    1.16 +  length[v2_v4]=5;
    1.17 +  length[v2_v5]=8;
    1.18 +  length[v3_v5]=5;
    1.19 +  length[v4_t]=8;
    1.20 +  length[v5_t]=8;
    1.21  
    1.22    std::cout << "Hello World!" << std::endl;
    1.23    std::cout <<  std::endl;