Originally Posted by
Prelude
>dont u think even the one u classified as a beginner category is way ahead for a beginner.
It's just simple textual substitution. I think anyone who can read from a file and parse a simple string should have little trouble with it.
You think so? Really?
Code:
int main( void )
{
int x[BUFSIZ];
printf("%[10]",(3+1-7*4/11+200)[x]));
return 0;
}
You mean to say it's simple string parsing for it to work with the results of something on the IOCCC which conformed to the standard? The above was just a quick example, but I'm sure there's way worse that would break it.
Actually, I'd really like to see it done:
Code:
#include <stdio.h>
#define W 1000
int main( void )
{
int x = 0, y = , z[W];
for(x=0,y=W;x<W;x++,y--)
printf("%d",(z[z[w-x+y]])[z]);
return 0;
}
Now with pure text subsitution, show me that all of those are in bounds at all times.
Quzah.