Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. (riddle) Students have to much time at hand...

(riddle) Students have to much time at hand...

Scheduled Pinned Locked Moved The Lounge
helpquestionc++html
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    peterchen
    wrote on last edited by
    #1

    When I still was a student, I posted this in response to an "do my homework quick" question:

    The following snippet does Part a) of your question, for appropriate #defines of i,c,sl,tu, and msg.

    i cr(c*s){
    i d,o,x,l=sl(s);s+=l;
    for(i j=l-l;j

    Now I don't even have the time to translate it back... However, there's at least one "obvious" error - can you figure out? I guess this help Paul to appreciate the clarity and beauty of C++ (edited) whoopsie - dear chris, would you please disable some HTML and/or emoticon features in < pre > if possible???

    M J 2 Replies Last reply
    0
    • P peterchen

      When I still was a student, I posted this in response to an "do my homework quick" question:

      The following snippet does Part a) of your question, for appropriate #defines of i,c,sl,tu, and msg.

      i cr(c*s){
      i d,o,x,l=sl(s);s+=l;
      for(i j=l-l;j

      Now I don't even have the time to translate it back... However, there's at least one "obvious" error - can you figure out? I guess this help Paul to appreciate the clarity and beauty of C++ (edited) whoopsie - dear chris, would you please disable some HTML and/or emoticon features in < pre > if possible???

      M Offline
      M Offline
      MarkyMark
      wrote on last edited by
      #2

      Missing semi-colon after d+= (i && x ) ?

      P 1 Reply Last reply
      0
      • M MarkyMark

        Missing semi-colon after d+= (i && x ) ?

        P Offline
        P Offline
        peterchen
        wrote on last edited by
        #3

        *grrr* stupid emoticons :mad:

        N 1 Reply Last reply
        0
        • P peterchen

          *grrr* stupid emoticons :mad:

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #4

          peterchen wrote: *grrr* stupid emoticons LOL put a space as in ; ) Nish It's seven o'clock On the dot I'm in my drop top Cruisin' the streets - Oh yeah I got a real pretty, pretty little thing that's waiting for me

          1 Reply Last reply
          0
          • P peterchen

            When I still was a student, I posted this in response to an "do my homework quick" question:

            The following snippet does Part a) of your question, for appropriate #defines of i,c,sl,tu, and msg.

            i cr(c*s){
            i d,o,x,l=sl(s);s+=l;
            for(i j=l-l;j

            Now I don't even have the time to translate it back... However, there's at least one "obvious" error - can you figure out? I guess this help Paul to appreciate the clarity and beauty of C++ (edited) whoopsie - dear chris, would you please disable some HTML and/or emoticon features in < pre > if possible???

            J Offline
            J Offline
            Joel Lucsy
            wrote on last edited by
            #5

            peterchen wrote: for(i j=l-l;j c rd = tu(*s--); the "j c rd" is invalid. j is a variable, c a type, and rd a variable with no punctuation between them. Joel Lucsy (jjlucsy@ameritech.net)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups