changeset 1569:ad622d24ac5a draft

select task num
author Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
date Mon, 18 Mar 2013 08:17:03 +0900
parents 767d99d95fbc
children b3f865f339f6
files example/multiply/main.cc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/example/multiply/main.cc	Sat Mar 16 17:47:44 2013 +0900
+++ b/example/multiply/main.cc	Mon Mar 18 08:17:03 2013 +0900
@@ -51,6 +51,8 @@
     for (int i = 1; argv[i]; ++i) {
         if (strcmp(argv[i], "--length") == 0 || strcmp(argv[i], "-l") == 0) {
             length = atoi(argv[++i]);
+        } else if (strcmp(argv[i], "-t") == 0) {
+            task = atoi(argv[++i]);
         } 
     }
 }