Results 1 to 9 of 9

Thread: Why is C++ so Cryptic?

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    11

    Angry

    WHY? WHY WHY WHY???? it makes no SESNE! why... wimper wimper... WHY?
    "Beyond the pretty wrapping paper, all life is, is just a struggle between one hard spot and the next, puncuated by a failure of biological systems."- Codewarrior123

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    It makes perfect sense, but you have to know it first :(

    Anyway, if you're unhappy, here's some christmas cheer:
    Code:
    #include <stdio.h>
    main(t,_,a)char *a;{return!0<t?t<3?main(-79,-13,a+main(-87,1-_,
    main(-86,0,a+1)+a)):1,t<_?main(t+1,_,a):3,main(-94,-27+t,a)&&t==2?_<13?
    main(2,_+1,"%s %d %d\n"):9:16:t<0?t<-72?main(_,t,
    "@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l+,/n{n+,/+#n+,/#\
    ;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l \
    q#'+d'K#!/+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# \
    ){nl]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#n'wk nw' \
    iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \
    ;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;#'rdq#w! nr'/ ') }+}{rl#'{n' ')# \
    }'+}##(!!/")
    :t<-50?_==*a?putchar(31[a]):main(-65,_,a+1):main((*a=='/')+t,_,a+1)
      :0<t?main(2,2,"%s"):*a=='/'||main(0,main(-61,*a,
    "!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry"),a+1);}
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Parksie is right. First learn C++ then you will see that it makes a really good sense. I think that the part that makes C++ cryptic is the " { } " and the " ; ". These signs are used very often in an app and that is why it looks cryptic but it is not.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  4. #4
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    C/C++'s crypticness is part of its appeal
    some things make a lot of sense, more than VB - like variable declarations:

    i like

    int x;
    rather than
    dim x as integer - it takes sooo long to write it all
    buzzwords are the language of fools

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    11

    Wink Ya, but

    how many lines of code do you have to type to make a windowed app that has a button that beeps when you press it?
    With VB u have to go to the trouble of click dragging a button, but the codeing is summed up in 1 line.

    Beep.
    "Beyond the pretty wrapping paper, all life is, is just a struggle between one hard spot and the next, puncuated by a failure of biological systems."- Codewarrior123

  6. #6
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    it's pretty mutch the same in C++, if you use MFC and all that crap, but I tend to use it to write dlls which I run from VB front ends, or do all the windows stuff myself.

    Basicly with VB everything is coded for you, which is what makes the apps so big, with C++ pretty much nothing is coded for you, you can use code libraries with #include but that just inserts somebody elses code into the file for you. so C++ files can be very small, which is a great advantage for distribution.


    The actual crypticness of the language, ie semicolons and curly brackets, does actually make a lot of sense and is really usefull, but it does take a while to get used to it.

    I tried learning C++ 4 times before I got the hang of it, but it's worth it, it's damn powerful.

  7. #7
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    If you think C++ is cryptic, take a look at this thread.

    Anyway, C isn't really cryptic, just low-level and strongly typed. VB hides a lot of the things that the computer is actually doing to achieve what you ask. An example is strings - they are greatly simplified in VB. You can simplify them in C too, but the functionality is still there.

    If you want to make something beep, then by all means use VB. It's there to speed up development times for apps that aren't too speed-dependant (among other things).
    Harry.

    "From one thing, know ten thousand things."

  8. #8
    Addicted Member tcurrier's Avatar
    Join Date
    May 1999
    Location
    Northeastern Pa./USA
    Posts
    255
    "WHY? WHY WHY WHY???? it makes no SESNE! why... wimper wimper... WHY?"

    well.... maybe, just maybe, if you can't spell 'SENSE', C++ won't make sense ...

    (sorry about that one)

  9. #9
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Ooh...harsh

    But if we're in the mood...it's whimper...
    All I can say is - you'll get used to it. It's logical and the brain likes logic
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width