Can anyone here tell me how use gmp library with visual studio express c++?
On 5/2/13, Vaibhav Tulsyan <wittynwise2...@gmail.com> wrote: > I was just going to talk about that :P Windows sucks! :P > > > On Thu, May 2, 2013 at 2:08 AM, Luke Pebody <luke.peb...@gmail.com> wrote: > >> Installing gmp on a windows machine can be challenging though... >> >> On 1 May 2013, at 20:40, "john.smith" <john.sm...@arrows.demon.co.uk> >> 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 google-code+unsubscr...@googlegroups.com. >> > To post to this group, send email to google-code@googlegroups.com. >> > 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 google-code+unsubscr...@googlegroups.com. >> To post to this group, send email to google-code@googlegroups.com. >> 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 google-code+unsubscr...@googlegroups.com. > To post to this group, send email to google-code@googlegroups.com. > 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 google-code+unsubscr...@googlegroups.com. To post to this group, send email to google-code@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.