diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2011-07-08 01:22:47 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2011-07-08 01:22:47 +0400 |
commit | 1fe8b681f0d2b0cd3e2e30491e285fb707cb9a69 (patch) | |
tree | 9d8b86661b1c157af710abf254f0509ec41f82e3 | |
parent | 0410cd07ef9b0ab56a423cff5768e2de99527ce4 (diff) | |
download | gcd-1fe8b681f0d2b0cd3e2e30491e285fb707cb9a69.tar.gz |
Comment about char* to GMP conversion
-rw-r--r-- | gcd.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; } |