Thread: Declaring bigger int

  1. #1
    Disturbed Boy gustavosserra's Avatar
    Join Date
    Apr 2003
    Posts
    244

    Declaring bigger int

    How can I declare an integer with the size that I want? I only know that exists class in C++ that do this, but with C I have no clue.
    Thanks in advance.
    Nothing more to tell about me...
    Happy day =)

  2. #2
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    tiny int:
    short

    normal int:
    int

    big fat int:
    long

    fatter int:
    long long

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    245
    To go bigger than that, you should use library, like the "Big number library", found here :

    http://indigo.ie/~mscott/

    With this, you specify exactly how big you want your integers to be, but be warned, this will be very much slower than the standard types.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. memory leak
    By aruna1 in forum C++ Programming
    Replies: 3
    Last Post: 08-17-2008, 10:28 PM
  2. Code review
    By Elysia in forum C++ Programming
    Replies: 71
    Last Post: 05-13-2008, 09:42 PM
  3. Moving Average Question
    By GCNDoug in forum C Programming
    Replies: 4
    Last Post: 04-23-2007, 11:05 PM
  4. Working with random like dice
    By SebastionV3 in forum C++ Programming
    Replies: 10
    Last Post: 05-26-2006, 09:16 PM
  5. getting a headache
    By sreetvert83 in forum C++ Programming
    Replies: 41
    Last Post: 09-30-2005, 05:20 AM