# HG changeset patch # User Yuhi TOMARI # Date 1363562223 -32400 # Node ID ad622d24ac5aa6acd7d4e7bd44cbf505affe53cc # Parent 767d99d95fbccb06e2e31e65b02f999c556c4d39 select task num diff -r 767d99d95fbc -r ad622d24ac5a example/multiply/main.cc --- 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]); } } }