Could it be the "%"?

This is a discussion on Could it be the "%"? within the C++ Programming forums, part of the General Programming Boards category; Originally posted by golfinguy4 moi, on unicode systems, char's are two bytes. by definition, sizeof (char) in a C/C++ program ...

  1. #16
    moi
    moi is offline
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    Originally posted by golfinguy4
    moi, on unicode systems, char's are two bytes.
    by definition, sizeof (char) in a C/C++ program is 1. i'm assuming this is internal machine representation? use wchar_t in C/C++ to work with 2 byte wide chars.
    hello, internet!

  2. #17
    UNBANNED OneStiffRod's Avatar
    Join Date
    Jan 2002
    Posts
    669
    How long did it take you to look up that info, get outta here foolish. This thread was answered by Magos and I "gave" to him that he had the better answer than me.

    When I said Long i meant Short, I went off the top of my head and goofed, the INT I got from college text that was probably outdated and oversimplified to prove the point of how Data Types work. I was at least close.

    Your answer has provided no new material on which to answer anything, you simply re-did Magos point which was well taken, your response was not, it was redundant and ridiculous, especially when you try to take a dig at me.

    IF YOU DON'T HAVE ANYTHING POSITIVE TO ADD,
    "SHUT YOUR ****ING LIPS"....
    My Avatar says: "Stay in School"

    Rocco is the Boy!
    "SHUT YOUR LIPS..."

  3. #18
    moi
    moi is offline
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    Originally posted by OneStiffRod
    How long did it take you to look up that info, get outta here foolish. This thread was answered by Magos and I "gave" to him that he had the better answer than me.

    When I said Long i meant Short, I went off the top of my head and goofed, the INT I got from college text that was probably outdated and oversimplified to prove the point of how Data Types work. I was at least close.

    Your answer has provided no new material on which to answer anything, you simply re-did Magos point which was well taken, your response was not, it was redundant and ridiculous, especially when you try to take a dig at me.

    IF YOU DON'T HAVE ANYTHING POSITIVE TO ADD,
    "SHUT YOUR ****ING LIPS"....
    how long? no time at all. excuse me for having a few very basic and very important facts of the C and C++ programming languages memorized. (you will notice I haven't linked to the appropriate parts of the ANSI C and C++ standards that support my statement; this is because I did not look it up in the first place. feel free to look it up if you want to though).

    that "outdated college text" excuse doesnt work. every implementation of C ever has had >= two byte ints. no amount of outdatedness will change that.

    Have something positive to say? No, i didn't. I had something RIGHT to say, which you seem unable to grasp. Rather than shooting off the top of my head, I prefer to HELP people that come in here for help. And feeding them grossly inaccurate information definately isnt help.
    hello, internet!

  4. #19
    Registered User
    Join Date
    Jun 2002
    Posts
    29
    what about type 'long long'? i don't have a compiler here, so i cannot check it. But in some compilers (Borland for DOS maybe)
    this type is also available. (my compiler takes even 'long long ... long long', and it is interpreted as 'long long')..

  5. #20
    moi
    moi is offline
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    Originally posted by mazo
    what about type 'long long'? i don't have a compiler here, so i cannot check it. But in some compilers (Borland for DOS maybe)
    this type is also available. (my compiler takes even 'long long ... long long', and it is interpreted as 'long long')..
    long long is a part of the C99 standard and is at least 8 bytes long. However, the C99 standard is quite new and so many compilers do not support it.
    hello, internet!

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21