[Lemon-commits] [lemon_svn] alpar: r2503 - hugo/trunk/demo

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:53:09 CET 2006


Author: alpar
Date: Mon Jan 30 10:32:26 2006
New Revision: 2503

Modified:
   hugo/trunk/demo/hello_lemon.cc

Log:
Use [] instead of set().

Modified: hugo/trunk/demo/hello_lemon.cc
==============================================================================
--- hugo/trunk/demo/hello_lemon.cc	(original)
+++ hugo/trunk/demo/hello_lemon.cc	Mon Jan 30 10:32:26 2006
@@ -56,13 +56,13 @@
   
   LengthMap length(g);
 
-  length.set(s_v2, 10);
-  length.set(s_v3, 10);
-  length.set(v2_v4, 5);
-  length.set(v2_v5, 8);
-  length.set(v3_v5, 5);
-  length.set(v4_t, 8);
-  length.set(v5_t, 8);
+  length[s_v2]=10;
+  length[s_v3]=10;
+  length[v2_v4]=5;
+  length[v2_v5]=8;
+  length[v3_v5]=5;
+  length[v4_t]=8;
+  length[v5_t]=8;
 
   std::cout << "Hello World!" << std::endl;
   std::cout <<  std::endl;



More information about the Lemon-commits mailing list