I was just going to talk about that :P Windows sucks! :P
On Thu, May 2, 2013 at 2:08 AM, Luke Pebody <[email protected]> wrote: > Installing gmp on a windows machine can be challenging though... > > On 1 May 2013, at 20:40, "john.smith" <[email protected]> > wrote: > > > The tutorial doesn't really tell you how wonderfully easy it is to use > gmp in c++. > > > > If you want a factorial function, say: > > > > mpz_class fact(unsigned int n) > > { > > if (n==0) return 1; > > > > return n*fact(n-1); > > } > > > > If you want to print a big factorial number, > > cout << fact(40); > > > > Most of the time you can you can declare integer variables as > > mpz_class x; > > and then write code as if they were ordinary integers. > > > > -- > > You received this message because you are subscribed to the Google > Groups "Google Code Jam" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected]. > > To post to this group, send email to [email protected]. > > To view this discussion on the web visit > https://groups.google.com/d/msg/google-code/-/X2YH_N_-sPAJ. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Google Code Jam" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Regards, Vaibhav Tulsyan. -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
