Skip to content

Instantly share code, notes, and snippets.

@nelsonlaquet
Created August 4, 2012 02:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nelsonlaquet/3253687 to your computer and use it in GitHub Desktop.
Save nelsonlaquet/3253687 to your computer and use it in GitHub Desktop.
Write a BigInt class
A BigInt class can represent an int of any numeric value, unlike fixed width ints (for example, the primative int type).
Must support the following operators:
copy ctor, dtor, =
+, -, +=, -=, *, *=
==, !=, <, >, <=, >=
unary -
ostream >>
istream <<
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment