Ergebnis 1 bis 20 von 245

Thema: 0x12 = 18??? - Das (Computer-)Geek-Quiz

Hybrid-Darstellung

Vorheriger Beitrag Vorheriger Beitrag   Nächster Beitrag Nächster Beitrag
  1. #1
    /"(\\.|[^\\"])*"/
    (Wobei \ in der RegExp durch \\ escapet ist.)

  2. #2
    Zitat Zitat von drunken monkey Beitrag anzeigen
    /"(\\.|[^\\"])*"/
    (Wobei \ in der RegExp durch \\ escapet ist.)
    Jopp, das funktioniert (Wobei, kommt auf die Greedyness an...). Du bist dran

  3. #3
    Wuhuu, nerdy REs ftw! o/

    Was macht die folgende Zeile C-Code?
    (* ( void(*)() ) 11) ();

  4. #4
    Zitat Zitat von drunken monkey Beitrag anzeigen
    Was macht die folgende Zeile C-Code?
    (* ( void(*)() ) 11) ();
    Er deklamiert etwas: Eine Funktion ohne Parameter.

    (* [...] 11) ();

    Die Funktion ist ein pointer auf eine Funktion namens 11.

    ( void(*)() )

    Das waehre der Rueckgabe-Typ der Funktion 11. void(*)() muesste ein Pointer auf eine beliebige Funktion ohne Parameter sein.

    Also muesste dein Code eine neue Funktion deklamieren, die als Typ einen Pointer auf die Funktion 11 hat, die wiederum als Typ einen Pointer auf eine beliebige Funktion ohne Parameter hat. Allerdings wuede dann der Name der Funktion fehlen aka (* ( void(*)() ) 11) x(); oder? Sorry, hab von C nicht wirklich viel Ahnung, aber evt. weiss jemand anderes mehr.

  5. #5
    Nein, nicht ganz. ^^'
    C ist aber auch eine Scheißsprache, beschäftig' dich bloß nicht damit! XD

  6. #6
    Also eigentlich hätte ich nicht gedacht, dass das keiner schafft. o_O' Ich bin echt nicht gut in C und die Sprache sollte doch eigentlich bekannt sein.
    Naja, egal, die Lösung war jedenfalls: Das Statement springt einfach zur virtuellen Adresse 11. Genauer: es castet 11 auf einen Funktionspointer, der einen Pointer auf void (also auf untypisierten Memory) zurückgibt, und ruft das Ding dann auf.
    C ist grässlich, qed.

    Freie Runde!

  7. #7
    Zitat Zitat von drunken monkey Beitrag anzeigen
    Freie Runde!
    Ok, das war in der Tat schwer fand ich.
    Hier ma was simples (fuer die Meisten hier):
    Nenne den(/die) Unterschied(e) zwischen XHTML 1.0 Strict und XHTML 1.0 Transitional.

  8. #8
    Zitat Zitat von Crash-Override Beitrag anzeigen
    Ok, das war in der Tat schwer fand ich.
    Hier ma was simples (fuer die Meisten hier):
    Nenne den(/die) Unterschied(e) zwischen XHTML 1.0 Strict und XHTML 1.0 Transitional.
    wtf? Du willst nicht ernsthaft alle Unterschiede zwischen Transitional und Strict haben? Einer wäre z.B., dass das Attribut "align" für viele Elemente abgeschafft wurde. Ebenso dürfte das für "name" für <a> gelten, aber es gibt IIRC noch einiges mehr <_<

  9. #9
    Code:
    Box:~/xhtml/xhtml1-20020801/DTD$ diff xhtml1-strict.dtd xhtml1-transitional.dtd
    2c2
    <    Extensible HTML version 1.0 Strict DTD
    ---
    >    Extensible HTML version 1.0 Transitional DTD
    4c4
    <    This is the same as HTML 4 Strict except for
    ---
    >    This is the same as HTML 4 Transitional except for
    16,17c16,17
    <    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    <    SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
    ---
    >    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    >    SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
    19,20c19,20
    <    $Revision: 1.24 $
    <    $Date: 2002/07/31 19:34:51 $
    ---
    >    $Revision: 1.27 $
    >    $Date: 2002/08/01 18:16:48 $
    87a88,90
    > <!ENTITY % FrameTarget "NMTOKEN">
    >     <!-- render in this frame -->
    >
    103a107,124
    > <!-- used for object, applet, img, input and iframe -->
    > <!ENTITY % ImgAlign "(top|middle|bottom|left|right)">
    >
    > <!-- a color using sRGB: #RRGGBB as Hex values -->
    > <!ENTITY % Color "CDATA">
    >
    > <!-- There are also 16 widely known color names with their sRGB values:
    >
    >     Black  = #000000    Green  = #008000
    >     Silver = #C0C0C0    Lime   = #00FF00
    >     Gray   = #808080    Olive  = #808000
    >     White  = #FFFFFF    Yellow = #FFFF00
    >     Maroon = #800000    Navy   = #000080
    >     Red    = #FF0000    Blue   = #0000FF
    >     Purple = #800080    Teal   = #008080
    >     Fuchsia= #FF00FF    Aqua   = #00FFFF
    > -->
    >
    169c190,191
    < <!--=================== Text Elements ====================================-->
    ---
    > <!-- text alignment for p, div, h1-h6. The default is
    >      align="left" for ltr headings, "right" for rtl -->
    171,172c193
    < <!ENTITY % special.pre
    <    "br | span | bdo | map">
    ---
    > <!ENTITY % TextAlign "align (left|center|right|justify) #IMPLIED">
    173a195,201
    > <!--=================== Text Elements ====================================-->
    >
    > <!ENTITY % special.extra
    >    "object | applet | img | map | iframe">
    >
    > <!ENTITY % special.basic
    >       "br | span | bdo">
    176c204,206
    <    "%special.pre; | object | img ">
    ---
    >    "%special.basic; | %special.extra;">
    >
    > <!ENTITY % fontstyle.extra "big | small | font | basefont">
    178c208,209
    < <!ENTITY % fontstyle "tt | i | b | big | small ">
    ---
    > <!ENTITY % fontstyle.basic "tt | i | b | u
    >                       | s | strike ">
    180,181c211,217
    < <!ENTITY % phrase "em | strong | dfn | code | q |
    <                    samp | kbd | var | cite | abbr | acronym | sub | sup ">
    ---
    > <!ENTITY % fontstyle "%fontstyle.basic; | %fontstyle.extra;">
    >
    > <!ENTITY % phrase.extra "sub | sup">
    > <!ENTITY % phrase.basic "em | strong | dfn | code | q |
    >                    samp | kbd | var | cite | abbr | acronym">
    >
    > <!ENTITY % phrase "%phrase.basic; | %phrase.extra;">
    199,200c235,236
    < <!ENTITY % lists "ul | ol | dl">
    < <!ENTITY % blocktext "pre | hr | blockquote | address">
    ---
    > <!ENTITY % lists "ul | ol | dl | menu | dir">
    > <!ENTITY % blocktext "pre | hr | blockquote | address | center | noframes">
    203,205c239
    <      "p | %heading; | div | %lists; | %blocktext; | fieldset | table">
    <
    < <!ENTITY % Block "(%block; | form | %misc;)*">
    ---
    >     "p | %heading; | div | %lists; | %blocktext; | isindex |fieldset | table">
    217c251,252
    < <!-- pre uses %Inline excluding big, small, sup or sup -->
    ---
    > <!-- pre uses %Inline excluding img, object, applet, big, small,
    >      font, or basefont -->
    220,221c255,256
    <    "(#PCDATA | a | %fontstyle; | %phrase; | %special.pre; | %misc.inline;
    <       | %inline.forms;)*">
    ---
    >    "(#PCDATA | a | %special.basic; | %fontstyle.basic; | %phrase.basic; |
    >          %inline.forms; | %misc.inline;)*">
    223c258
    < <!-- form uses %Block; excluding form -->
    ---
    > <!-- form uses %Flow; excluding form -->
    225c260
    < <!ENTITY % form.content "(%block; | %misc;)*">
    ---
    > <!ENTITY % form.content "(#PCDATA | %block; | %inline; | %misc;)*">
    227c262
    < <!-- button uses %Flow; but excludes a, form and form controls -->
    ---
    > <!-- button uses %Flow; but excludes a, form, form controls, iframe -->
    231c266,267
    <     table | %special; | %fontstyle; | %phrase; | %misc;)*">
    ---
    >       table | br | span | bdo | object | applet | img | map |
    >       %fontstyle; | %phrase; | %misc;)*">
    246c282
    < <!ENTITY % head.misc "(script|style|meta|link|object)*">
    ---
    > <!ENTITY % head.misc "(script|style|meta|link|object|isindex)*">
    275d310
    <   href        %URI;          #REQUIRED
    276a312,313
    >   href        %URI;          #IMPLIED
    >   target      %FrameTarget;  #IMPLIED
    313a351
    >   target      %FrameTarget;  #IMPLIED
    332a371
    >   language    CDATA          #IMPLIED
    340c379
    < <!ELEMENT noscript %Block;>
    ---
    > <!ELEMENT noscript %Flow;>
    344a384,409
    > <!--======================= Frames =======================================-->
    >
    > <!-- inline subwindow -->
    >
    > <!ELEMENT iframe %Flow;>
    > <!ATTLIST iframe
    >   %coreattrs;
    >   longdesc    %URI;          #IMPLIED
    >   name        NMTOKEN        #IMPLIED
    >   src         %URI;          #IMPLIED
    >   frameborder (1|0)          "1"
    >   marginwidth %Pixels;       #IMPLIED
    >   marginheight %Pixels;      #IMPLIED
    >   scrolling   (yes|no|auto)  "auto"
    >   align       %ImgAlign;     #IMPLIED
    >   height      %Length;       #IMPLIED
    >   width       %Length;       #IMPLIED
    >   >
    >
    > <!-- alternate content container for non frame-based rendering -->
    >
    > <!ELEMENT noframes %Flow;>
    > <!ATTLIST noframes
    >   %attrs;
    >   >
    >
    347c412
    < <!ELEMENT body %Block;>
    ---
    > <!ELEMENT body %Flow;>
    350,351c415,422
    <   onload          %Script;   #IMPLIED
    <   onunload        %Script;   #IMPLIED
    ---
    >   onload      %Script;       #IMPLIED
    >   onunload    %Script;       #IMPLIED
    >   background  %URI;          #IMPLIED
    >   bgcolor     %Color;        #IMPLIED
    >   text        %Color;        #IMPLIED
    >   link        %Color;        #IMPLIED
    >   vlink       %Color;        #IMPLIED
    >   alink       %Color;        #IMPLIED
    356a428
    >   %TextAlign;
    363a436
    >   %TextAlign;
    375,376c448,450
    <    %attrs;
    <    >
    ---
    >   %attrs;
    >   %TextAlign;
    >   >
    380,381c454,456
    <    %attrs;
    <    >
    ---
    >   %attrs;
    >   %TextAlign;
    >   >
    385,386c460,462
    <    %attrs;
    <    >
    ---
    >   %attrs;
    >   %TextAlign;
    >   >
    390,391c466,468
    <    %attrs;
    <    >
    ---
    >   %attrs;
    >   %TextAlign;
    >   >
    395,396c472,474
    <    %attrs;
    <    >
    ---
    >   %attrs;
    >   %TextAlign;
    >   >
    400,401c478,480
    <    %attrs;
    <    >
    ---
    >   %attrs;
    >   %TextAlign;
    >   >
    404a484,487
    > <!-- Unordered list bullet styles -->
    >
    > <!ENTITY % ULStyle "(disc|square|circle)">
    >
    409a493,494
    >   type        %ULStyle;     #IMPLIED
    >   compact     (compact)     #IMPLIED
    411a497,509
    > <!-- Ordered list numbering style
    >
    >     1   arabic numbers      1, 2, 3, ...
    >     a   lower alpha         a, b, c, ...
    >     A   upper alpha         A, B, C, ...
    >     i   lower roman         i, ii, iii, ...
    >     I   upper roman         I, II, III, ...
    >
    >     The style is applied to the sequence number which by default
    >     is reset to 1 for the first list item in an ordered list.
    > -->
    > <!ENTITY % OLStyle "CDATA">
    >
    416a515,531
    >   type        %OLStyle;      #IMPLIED
    >   compact     (compact)      #IMPLIED
    >   start       %Number;       #IMPLIED
    >   >
    >
    > <!-- single column list (DEPRECATED) -->
    > <!ELEMENT menu (li)+>
    > <!ATTLIST menu
    >   %attrs;
    >   compact     (compact)     #IMPLIED
    >   >
    >
    > <!-- multiple column list (DEPRECATED) -->
    > <!ELEMENT dir (li)+>
    > <!ATTLIST dir
    >   %attrs;
    >   compact     (compact)     #IMPLIED
    418a534,536
    > <!-- LIStyle is constrained to: "(%ULStyle;|%OLStyle;)" -->
    > <!ENTITY % LIStyle "CDATA">
    >
    423a542,543
    >   type        %LIStyle;      #IMPLIED
    >   value       %Number;       #IMPLIED
    430a551
    >   compact     (compact)      #IMPLIED
    447c568
    < <!ELEMENT address %Inline;>
    ---
    > <!ELEMENT address (#PCDATA | %inline; | %misc.inline; | p)*>
    456a578,581
    >   align       (left|center|right) #IMPLIED
    >   noshade     (noshade)      #IMPLIED
    >   size        %Pixels;       #IMPLIED
    >   width       %Length;       #IMPLIED
    461c586,587
    < <!-- content is %Inline; excluding "img|object|big|small|sub|sup" -->
    ---
    > <!-- content is %Inline; excluding
    >         "img|object|applet|big|small|sub|sup|font|basefont" -->
    466c592,593
    <   xml:space (preserve) #FIXED 'preserve'
    ---
    >   width       %Number;      #IMPLIED
    >   xml:space   (preserve)    #FIXED 'preserve'
    471c598
    < <!ELEMENT blockquote %Block;>
    ---
    > <!ELEMENT blockquote %Flow;>
    476a604,611
    > <!--=================== Text alignment ===================================-->
    >
    > <!-- center content -->
    > <!ELEMENT center %Flow;>
    > <!ATTLIST center
    >   %attrs;
    >   >
    >
    514a650
    >   target      %FrameTarget;  #IMPLIED
    535a672
    >   clear       (left|all|right|none) "none"
    594a732,757
    > <!ELEMENT u %Inline;>   <!-- underline -->
    > <!ATTLIST u %attrs;>
    >
    > <!ELEMENT s %Inline;>   <!-- strike-through -->
    > <!ATTLIST s %attrs;>
    >
    > <!ELEMENT strike %Inline;>   <!-- strike-through -->
    > <!ATTLIST strike %attrs;>
    >
    > <!ELEMENT basefont EMPTY>  <!-- base font size -->
    > <!ATTLIST basefont
    >   id          ID             #IMPLIED
    >   size        CDATA          #REQUIRED
    >   color       %Color;        #IMPLIED
    >   face        CDATA          #IMPLIED
    >   >
    >
    > <!ELEMENT font %Inline;> <!-- local change to font -->
    > <!ATTLIST font
    >   %coreattrs;
    >   %i18n;
    >   size        CDATA          #IMPLIED
    >   color       %Color;        #IMPLIED
    >   face        CDATA          #IMPLIED
    >   >
    >
    618a782,785
    >   align       %ImgAlign;     #IMPLIED
    >   border      %Pixels;       #IMPLIED
    >   hspace      %Pixels;       #IMPLIED
    >   vspace      %Pixels;       #IMPLIED
    630c797
    <   name        CDATA          #IMPLIED
    ---
    >   name        CDATA          #REQUIRED
    635a803,823
    > <!--=================== Java applet ==================================-->
    > <!--
    >   One of code or object attributes must be present.
    >   Place param elements before other content.
    > -->
    > <!ELEMENT applet (#PCDATA | param | %block; | form | %inline; | %misc;)*>
    > <!ATTLIST applet
    >   %coreattrs;
    >   codebase    %URI;          #IMPLIED
    >   archive     CDATA          #IMPLIED
    >   code        CDATA          #IMPLIED
    >   object      CDATA          #IMPLIED
    >   alt         %Text;         #IMPLIED
    >   name        NMTOKEN        #IMPLIED
    >   width       %Length;       #REQUIRED
    >   height      %Length;       #REQUIRED
    >   align       %ImgAlign;     #IMPLIED
    >   hspace      %Pixels;       #IMPLIED
    >   vspace      %Pixels;       #IMPLIED
    >   >
    >
    643,644d830
    <    Note that in this DTD there is no name attribute. That
    <    is only available in the transitional and frameset DTD.
    651a838
    >   name        NMTOKEN        #IMPLIED
    656a844,847
    >   align       %ImgAlign;     #IMPLIED
    >   border      %Length;       #IMPLIED
    >   hspace      %Pixels;       #IMPLIED
    >   vspace      %Pixels;       #IMPLIED
    675c866
    <   name        NMTOKEN        #IMPLIED
    ---
    >   name        CDATA          #IMPLIED
    686a878
    >   target      %FrameTarget;  #IMPLIED
    689a882
    >
    695a889
    >   name        NMTOKEN        #IMPLIED
    700a895
    >   target      %FrameTarget;  #IMPLIED
    741a937
    >   align       %ImgAlign;     #IMPLIED
    795a992,993
    > <!ENTITY % LAlign "(top|bottom|left|right)">
    >
    799a998
    >   align       %LAlign;       #IMPLIED
    803c1002
    <  Content is %Flow; excluding a, form and form controls
    ---
    >  Content is %Flow; excluding a, form, form controls, iframe
    814a1014,1021
    > <!-- single-line text input control (DEPRECATED) -->
    > <!ELEMENT isindex EMPTY>
    > <!ATTLIST isindex
    >   %coreattrs;
    >   %i18n;
    >   prompt      %Text;         #IMPLIED
    >   >
    >
    837a1045,1047
    > <!-- horizontal placement of table relative to document -->
    > <!ENTITY % TAlign "(left|center|right)">
    >
    874a1085,1086
    >   align       %TAlign;       #IMPLIED
    >   bgcolor     %Color;        #IMPLIED
    876a1089,1090
    > <!ENTITY % CAlign "(top|bottom|left|right)">
    >
    878a1093
    >   align       %CAlign;       #IMPLIED
    946a1162
    >   bgcolor     %Color;        #IMPLIED
    949d1164
    <
    964a1180,1183
    >   nowrap      (nowrap)       #IMPLIED
    >   bgcolor     %Color;        #IMPLIED
    >   width       %Length;       #IMPLIED
    >   height      %Length;       #IMPLIED
    976a1196,1199
    >   nowrap      (nowrap)       #IMPLIED
    >   bgcolor     %Color;        #IMPLIED
    >   width       %Length;       #IMPLIED
    >   height      %Length;       #IMPLIED
    Ist ja wohl korrekt

  10. #10
    Na DAS nenne ich doch mal nicht nachgelesen!
    Sowas ist echtes Wissen! Ganz großer Tennis!

  11. #11
    naja, meinetwegen kann Don Cuan weitermachen, genuegt haette es eiegntlich imo zu sagen, dass Strict so ziemlich das selbe ist wie HTML 4 Strict mit XML Regeln ist und Transitional eine Art Erweiterung um aeltere Tags wie <center> oder <u> um den Umstieg von HTML < 4 zu erleichtern.

    http://www.w3.org/MarkUp/#flavors
    bzw. http://en.wikipedia.org/wiki/XHTML#XHTML_1.0

  12. #12
    Ich finde deine Frage dann etwas "schwammig" formuliert, da ich für meinen Teil eine Antwort wie meine oder Don Cuans sehr viel passender finde als deine Wunschantwort, die ja eher XHTML mit HTML vergleich, IMO. ^^

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •