Thread: does uint4 exist?

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    1

    does uint4 exist?

    Hi all,
    I have this problem: I don't know how I can read a fixed number of bit and convert them into an int.
    To be more clear:
    I am using uint8 to read 8 bits field, does it exist something equivalent for 4 bit or 12?
    How can I do?

    Thanks a lot to everybody who has some ideas!

    Rosella

  2. #2
    Registered User Mario's Avatar
    Join Date
    May 2002
    Posts
    317
    Take a look at http://www.codeguru.com/data-misc/NumberBase.html.

    He has 2 functions one to convert strings to numbers and the other to convert numbers to strings. Both accept a base argument ranging from 2 to 32.
    Regards,
    Mario Figueiredo
    Using Borland C++ Builder 5

    Read the Tao of Programming
    This advise was brought to you by the Comitee for a Service Packless World

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Check if a directory exist?
    By kevinawad in forum C++ Programming
    Replies: 12
    Last Post: 10-26-2008, 02:42 AM
  2. Compiler error in whitespace that doesn't even exist
    By beanroaster in forum C++ Programming
    Replies: 2
    Last Post: 09-09-2005, 10:27 PM
  3. Do aliens EXIST part 2
    By M Prime in forum A Brief History of Cprogramming.com
    Replies: 35
    Last Post: 06-24-2002, 03:40 PM
  4. How to check a directory is exist or not?
    By Unregistered in forum C++ Programming
    Replies: 6
    Last Post: 03-23-2002, 10:13 AM
  5. Checking that a file doesn't exist already
    By Gades in forum C Programming
    Replies: 2
    Last Post: 10-26-2001, 03:00 AM