Thread: && - and

  1. #16
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    Apparently not in Iceland or Romania at the very least:

    http://en.wikipedia.org/wiki/Keyboard_layout

  2. #17
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    More world madness it seems. Do we need a standard for keyboard layout as well?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #18
    The larch
    Join Date
    May 2006
    Posts
    3,573
    If you have a load of special characters in your language, you'd need a larger keyboard to make room for ^. As far as I can see on my keyboard, only (most of) the actual character keys have only two functions, the special symbols already mostly have 3 meanings.

    Well, I personally could switch to English layout too, but at first I'd have great trouble finding and memorizing the keys.
    I might be wrong.

    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
    Quoted more than 1000 times (I hope).

  4. #19
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    But there are special keys that allows you to access special characters, typically Alt, Ctrl or Shift. I don't remember which ones are present on an english keyboard, however. More such could be added to get access to these keys. There has to be a standard layout - everyone is assuming you're always using english keyboard layout (well, most) and it causes lots of problem for shortcuts.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #20
    The larch
    Join Date
    May 2006
    Posts
    3,573
    You have apparently no idea that many alphabets have more characters than the 26 characters in English alphabet. These take up some of the keys where common punctuation is in English lay-out, meaning that more special symbols need to be pushed under Shift, Alt, Ctrl + Alt combinations.

    The total number of symbols would be such that you simply couldn't display them all on the keys.

    Even if you want standardization only for European languages, you'd still have to accept that lots and lots of character that you'll never use will appear on your keyboard.

    So, for non-English it might be better to have a native keyboard to work in their native language, and switch to English lay-out for specific tasks (such as programming) if that is necessary and available.
    I might be wrong.

    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
    Quoted more than 1000 times (I hope).

  6. #21
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I know that...
    But ideally, what I would like to see, is that all keyboards include the same special characters.
    This would essentially help when everyone expects you to be using an english keyboard layout.
    I don't know if you've felt it, but it's infuriating when they use a shortcut combination of characters that don't exist freely on your native keyboard!

    Anyway, I digress. It's a difficult thing.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #22
    The larch
    Join Date
    May 2006
    Posts
    3,573
    But then who would decide which special characters are vital. Nowadays almost everbody uses @, but 99.9% of people here probably don't ever need ^ (it is not used as a math symbol in my country).
    I might be wrong.

    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
    Quoted more than 1000 times (I hope).

  8. #23
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I guess that's why they removed it.
    But about the actual issue... well, I don't know. Perhaps try to model it after the english standard?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  9. #24
    Registered User
    Join Date
    Apr 2006
    Posts
    2,149
    Quote Originally Posted by anon View Post
    I haven't actually seen anyone use those keywords.

    My keyboard lay-out, for example, doesn't have a key for ^. Fortunately I need it seldom, but when I do, I rather type Alt + 094 than use bit_xor. With Code::Blocks even the Alt combination doesn't seem to work (?), so I resort to using the clipboard.

    If someone were programming on a keyboard that doesn't have any of these symbols, I'd understand the usage of synonyms.
    The symbol is actually just xor, since there is no logical xor operator.
    Last edited by King Mir; 01-12-2008 at 09:32 PM.
    It is too clear and so it is hard to see.
    A dunce once searched for fire with a lighted lantern.
    Had he known what fire was,
    He could have cooked his rice much sooner.

  10. #25
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    Quote Originally Posted by Elysia View Post
    Perhaps try to model it after the english standard?
    You joking, right?
    Computer keyboards are modeled to be compatible with the typewriters, because a lot of computer users were comming to use computers as a replacements for that.

    so local keyboard of the typewriter IS de facto a standard for the computer keyboard. Modifications could be freely done only to buttons that are outside the standard typewriter keyboard. Or to such combinations like Alt+ Ctrl+ that are not present on the typewriter
    (Shift+ combinations are also fixed)
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

  11. #26
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by vart View Post
    You joking, right?
    I didn't know (and I still don't), so I took a stab in the wild
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  12. #27
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by Elysia View Post
    I agree, there is no gain whatsoever to this and coders may be confused because there is no keyword AND.
    More cluelessness from Elysia. The following is perfectly valid C++:

    Code:
    bool a, b, c, d, e;
    
    a = b and c xor d and not e;

  13. #28
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Since when did I say it's not valid?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  14. #29
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by Elysia View Post
    Since when did I not say it's valid?
    When you said there is no keyword "AND."

  15. #30
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    More cluelessness from Elysia. The following is perfectly valid C++:
    On a technicality, Elysia stated that "there is no keyword AND", not "there is no keyword and", and your variables were not initialised, thus making a poor example anyway
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. str_replace && str_find
    By q6z4k in forum C Programming
    Replies: 12
    Last Post: 06-01-2008, 04:03 PM
  2. problem w/ color functions && win98 :P
    By DarkMortar in forum C Programming
    Replies: 2
    Last Post: 06-07-2006, 04:45 PM
  3. AnimateWindow && Dev-C++ problems
    By willc0de4food in forum Windows Programming
    Replies: 4
    Last Post: 03-13-2006, 04:34 PM
  4. [newb] How is "!(1 && !(0 || 1))" true?
    By eddwills in forum C++ Programming
    Replies: 11
    Last Post: 02-18-2006, 08:19 AM
  5. && or ||
    By chrismax2 in forum C++ Programming
    Replies: 4
    Last Post: 08-17-2005, 04:42 PM