× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I believe the problem is the "e-" and "R-".  They should probably be "e--"
and "R--", and someone's e-mail editor somewhere decided it'd be helpful,
and convert "--" into a longer dash... (I know Word would do that) and
then when it got converted back to plain text, it was just one...

The following code compiles:

#include <stdio.h>
void P(const char *);

main () {
     int *u, k, R, e, C;

for(;P("\n"),R--;P("|"))for(e=C;e--;P("_"+(*u++/8)%2))P("|"+(*u/4)%2);
}

void P(const char *huh) {
   printf("%s", huh);
}

It certainly doesn't do anything useful, though... and it crashes pretty
quick, since adding to the pointer returned by "_" and "|" is a REALLY bad
idea...

Oh well... I was hoping the code would do something cool like print a
message or something.  sigh.


On Thu, 7 Feb 2002 MacWheel99@aol.com wrote:

> But what version were you running it on? ... perhaps the syntax has changed.
> Could there be a typo in the transcription?
>
> > Okay, so I decided to try it:
> >
> >  I cut/pasted "for(;P("\n"),
> R-;P("|"))for(e=C;e-;P("_"+(*u++/8)%2))P("|"+(*u/
> > 4)%2)"
> >  into a file called "hoax.c".
> >
> >  Tried to compile it:
> >
> >  (w7) 4:13pm ~ > cc -o hoax hoax.c
> >  hoax.c:1: syntax error before `for'
> >
> >  Eh?  It doesn't even get as far as the first word in the statement before
> >  failing.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.