To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.off-topic.geekOpen lugnet.off-topic.geek in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Off-Topic / Geek / 2018
2017  |  2019
Subject: 
Re: Programming Brain Teaser
Newsgroups: 
lugnet.off-topic.geek
Date: 
Fri, 8 Sep 2000 03:15:52 GMT
Reply-To: 
mattdm@AVOIDSPAMmattdm.org
Viewed: 
250 times
  
DaveG <peagreen@intergate.ca> wrote:
#define madamimadam enifed#
Good one, works in perl, C, and C++ You win in my opinion.

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....


But even neater would be to constrain the problem such that the statement
couldn't be a palandrome...

Well,

#define thisisnotapalindrome enifed#

:)


--
Matthew Miller                     --->                 mattdm@mattdm.org
Quotes 'R' Us                    --->              http://quotes-r-us.org/
Boston University Linux            --->               http://linux.bu.edu/



Message has 1 Reply:
  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)

Message is in Reply To:
  Re: Programming Brain Teaser
 
(...) Good one, works in perl, C, and C++ You win in my opinion. (...) What a nasty addition to the problem. Gonna have to think about it... DaveG (24 years ago, 8-Sep-00, to lugnet.off-topic.geek)

19 Messages in This Thread:







Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR