C++ Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gimp
    Registered User
    • Jan 2001
    • 2368

    #1

    C++ Help

    I'm writing a little cryptography program for my current problem in DSA (data structures and algorithms). I finished it and it works unless I put in really really big numbers. Which is what is normally put in for it to work well. Anyway, is there a built in class or something that will get bigger than an unsigned long, or will I have to write one myself? Someone recommended that I write a class to do this, so that's the direction I'm moving towards.

    Thanks,
    ~Pitts
  • 71 LS6
    Nick Tahou's guru
    • May 2002
    • 230

    #2
    I would say that you probably have to write a class. Unsigned long is as large as i can think of for built-in datatypes.
    - There's no replacement for displacement.

    "It's not peer pressure, it's just your turn."

    AO Teenage Mutant Ninja Turtle: Donatello

    Comment

    • Miscue
      Super Moderator

      • Oct 2000
      • 7105

      #3
      Create your own data type to handle very large numbers.

      Bad thing is: Will be SLOW when doing calculations in comparison to built in data types.

      Comment

      • gimp
        Registered User
        • Jan 2001
        • 2368

        #4
        Well, I just talked to a TA, and they said not to worry about it with real big numbers. So my problems are solved!! Now I have to do all the runtime stuff, and a bunch of proofs, which I'm horrible at.

        Comment

        Working...