From 1fe8b681f0d2b0cd3e2e30491e285fb707cb9a69 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Fri, 8 Jul 2011 01:22:47 +0400 Subject: Comment about char* to GMP conversion --- gcd.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- cgit v1.2.3