Thread: Help with understanding ( int, char, long, short, signed, unsigned etc.... )

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    0x01
    Join Date
    Sep 2001
    Posts
    88

    Help with understanding ( int, char, long, short, signed, unsigned etc.... )

    Most of you will answer this question with "Go read a book" or "Don't you own a c/c++ book?"

    k. The question is simple: When should I use a long, int, char, unsigned/signed variables?? K, thas very blunt, but this should narrow it down...

    When I declare a variable "unsigned;" what did I do it???
    Why would I delcare an integer "long" or "short" ( unsigned or signed)??

    Any examples of when things like "unsigned", "long", "short" etc... should, and shouldn't be used???



    One more thing; I noticed a lot of the code I see IN MSVC++ has variables with these "pre-fixes", for instance "Cdialog" (notice the C in front of the word Dialog) or "nResponse" ( notice the 'n' in front of Response ), or things like m_nResponse (notice the "m_n" in front of the word "Response") are these prefixes suppposed to represent things?

    I know these may seem like stupid questions, i have been programming for awhile.. theses are just things that I comme across at time.

    Help will be appreciated.
    Last edited by knave; 05-12-2003 at 05:04 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 12
    Last Post: 08-11-2008, 11:02 PM
  2. can some one please tell me the cause of the error ?
    By broli86 in forum C Programming
    Replies: 8
    Last Post: 06-26-2008, 08:36 PM
  3. Replies: 2
    Last Post: 03-24-2006, 08:36 PM
  4. HUGE fps jump
    By DavidP in forum Game Programming
    Replies: 23
    Last Post: 07-01-2004, 10:36 AM
  5. Can't Find Conio.h?
    By drdroid in forum C++ Programming
    Replies: 27
    Last Post: 09-26-2002, 04:24 AM