Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. c++

c++

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Resul Sebili
    wrote on last edited by
    #1

    please, help me .i cant find the 1000 factorial program.

    K CPalliniC L D 4 Replies Last reply
    0
    • R Resul Sebili

      please, help me .i cant find the 1000 factorial program.

      K Offline
      K Offline
      k5054
      wrote on last edited by
      #2

      Assuming you mean 1 * 2 * 3 * ... * 998 *999 * 1000, then I have bad news for you. The result when written out has 2568 digits in all. That is far more than even a 64 bit integer can express. So, either you have misunderstood your assignment, or you are supposed to be working with some arbitrary precision library. In either case, we don't do homework for you. If you have tried something and are stuck, we're happy to help point you in the right direction.

      1 Reply Last reply
      0
      • R Resul Sebili

        please, help me .i cant find the 1000 factorial program.

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #3

        You may have a look at boost multiprecision library. This page gmp_int - 1.58.0[^] looks promising (see the code sample).

        In testa che avete, signor di Ceprano?

        1 Reply Last reply
        0
        • R Resul Sebili

          please, help me .i cant find the 1000 factorial program.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          It's in the top cupboard by the door.

          1 Reply Last reply
          0
          • R Resul Sebili

            please, help me .i cant find the 1000 factorial program.

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            Developers don't find programs; they create them. Get started!

            "One man's wage rise is another man's price increase." - Harold Wilson

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups