summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2011-07-08 01:22:47 +0400
committerIgor Pashev <pashev.igor@gmail.com>2011-07-08 01:22:47 +0400
commit1fe8b681f0d2b0cd3e2e30491e285fb707cb9a69 (patch)
tree9d8b86661b1c157af710abf254f0509ec41f82e3
parent0410cd07ef9b0ab56a423cff5768e2de99527ce4 (diff)
downloadgcd-1fe8b681f0d2b0cd3e2e30491e285fb707cb9a69.tar.gz
Comment about char* to GMP conversion
-rw-r--r--gcd.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcd.cpp b/gcd.cpp
index 2ac9b29..82f4387 100644
--- a/gcd.cpp
+++ b/gcd.cpp
@@ -59,6 +59,10 @@ int main (int argc, char *argv[])
stringstream str;
str << argv[n];
str >> ns[n-1];
+ /* NOTE:
+ * For GMP we can just assign: ns[n-1] = argv[n],
+ * and sstream is not needed.
+ */
}
cout << gcd(ns) << endl;
}