|
| | Re: Programming Brain Teaser
|
| (...) thx (...) I may be dense too, just thought of it a ; on a line alone fits exactly the definition as stated. Going to sleep now before I think of more [/:-) DaveG (24 years ago, 7-Sep-00, to lugnet.off-topic.geek)
| |
| teaser (score: 1.337) |
|
| | Re: Programming Brain Teaser
|
| (...) Not even legal Perl and he did say Perl. Only works in C++ or in a C with C++ extentions. Kick him twice as much. And (MattM) you may be right that the ; alone is to taking a liberty with the term statement. DaveG (24 years ago, 8-Sep-00, to lugnet.off-topic.geek)
| |
| teaser (score: 1.337) |
|
|
| teaser (score: 1.337) |
|
| | Re: Programming Brain Teaser
|
| (...) You got it right again you punk<grin>, Page 616:Programming Perl O'Reilly: Statement- A *command* to the computer about what to do next....Not to be confused with a *declararation* which doesn't tell the computer to do anything, but just learn (...) (24 years ago, 8-Sep-00, to lugnet.off-topic.geek)
| |
| teaser (score: 1.337) |
|
| | Re: Programming Brain Teaser
|
| (...) it doesn't have to actually produce anything, right? try this: perl -e 'print ,"lalal", tnirp' e- lrep :) I seem to recall some JAPH's code that would actually do things and would still qualify... but I can't find it yet... :) Dan (24 years ago, 7-Sep-00, to lugnet.off-topic.geek)
| |
| teaser (score: 1.336) |
|
| | Re: Programming Brain Teaser
|
| (...) Does the code need to compile in all of those, or just some of them? It's really easy in perl. :) Does it have to compile by itself, or can it be part of a larger program? The former is more difficult in C/C++... Also, what qualifies as a (...) (24 years ago, 7-Sep-00, to lugnet.off-topic.geek)
| |
| teaser (score: 1.336) |
|
| | Re: Programming Brain Teaser
|
| (...) And a good one. Thanks for the replies. I think I am beginning to see some ways into it that I hadn't thought of. The way I was understanding the puzzle (and you know that people have a tendency to explain things quite poorly AND I tried to (...) (24 years ago, 7-Sep-00, to lugnet.off-topic.geek)
| |
| teaser (score: 1.336) |
|
|
| teaser (score: 1.336) |
|
| | Re: Programming Brain Teaser
|
| (...) Well the obvious answer is ";", but that's a bit too simple. I can't think of anything else that doesn't involve several variable and/or function definitions elsewhere. (24 years ago, 7-Sep-00, to lugnet.off-topic.geek)
| |
| teaser (score: 1.336) |
|
| | Re: Programming Brain Teaser
|
| (...) Yeah, and maybe I am going to have to kick this guy until he is dead. His solution was: printf("abcdefghijkl...tuvwxyz"); // ;("abcdefghijklmnopq...yz")ftnirp Which I would like to point out doesn't print anything in the second instance (...) (24 years ago, 7-Sep-00, to lugnet.off-topic.geek)
| |
| teaser (score: 1.336) |
|
| | Re: Programming Brain Teaser
|
| In lugnet.off-topic.geek, Richard Marchetti writes: <snip> (...) <snip> Yikes!!! Programmers are way too serious. I have heard of not being able to take a joke, but come on... :-) Jude (24 years ago, 7-Sep-00, to lugnet.off-topic.geek)
| |
| teaser (score: 1.336) |
|
|
| teaser (score: 1.336) |
|
| | Re: Programming Brain Teaser
|
| (...) ;("abcdefghijklmnopq...yz")ftnirp (...) 'Course, if ';' doesn't count as a statement, it makes it much more difficult, since most commands end with a ';', and therefore have to start with one as well if they're to be read in backwards-- making (...) (24 years ago, 8-Sep-00, to lugnet.off-topic.geek)
| |
| teaser (score: 1.336) |
|
| | Re: Programming Brain Teaser
|
| (...) Yeah, I thought of that one, but I'm not sure it counts as a statement. In perl, of course, it's a comment. And in C/C++, it's a preprocessor directive.... (...) Well, #define thisisnotapalindrome enifed# :) (24 years ago, 8-Sep-00, to lugnet.off-topic.geek)
| |
| teaser (score: 1.336) |
|
|
| teaser (score: 1.336) |
|
|
| teaser (score: 1.336) |
|
|
| teaser (score: 1.334) |
|
|
| teaser (score: 1.333) |
|
| | new catalog, new sets, a question
|
| I would like to know why sometimes Lego will publicize some new sets like the movie sets months in advance, or show teaser photos in their catalog of dino sets and Star Wars sets way before they are out yet at other times be incredibly secretive. as (...) (24 years ago, 6-Sep-00, to lugnet.general)
| |
| teaser (score: 1.333) |
|
|
| teaser (score: 1.333) |