On Sun, Mar 21, 2010 at 4:29 PM, Russell McMahon wrot= e: >> int main() { char *a,*s,*q; printf(s=3D"int main() { char *a,*s,*q; >> printf(s=3D%s%s%s, q=3D%s%s%s%s,s,q,q,a=3D%s%s%s%s,q,q,q,a,a,q); }", >> q=3D"\"",s,q,q,a=3D"\\",q,q,q,a,a,q); } > > 1. =A0It thinks therefore it am? Quite obfuscated though :-) > 2. Quite good - http://www.nyx.net/~gthompso/quine.htm > http://en.wikipedia.org/wiki/Quine_(computing) I have done that a while ago and was quite happy to see that working. As I can see it can be done in shorter way -- hmm, there is always something to learn :-) Thanks for the links! Tamas > > > > _______ > > AGH > Danger! - Black hole !!!!!!!!!!!!!!! > (Worth a serious read by some) > > =A0 =A0 =A0 =A0 http://en.wikipedia.org/wiki/G%C3%B6del,_Escher,_Bach:_An= _Eternal_Golden_Braid > > "SHRDLU", toy of man's designing :-( > > =A0 =A0 =A0 =A0http://en.wikipedia.org/wiki/SHRDLU > > (Even) Bach was here > > =A0 =A0 =A0 =A0 =A0 http://en.wikipedia.org/wiki/Crab_canon > > > > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0R > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- = int main() { char *a,*s,*q; printf(s=3D"int main() { char *a,*s,*q; printf(s=3D%s%s%s, q=3D%s%s%s%s,s,q,q,a=3D%s%s%s%s,q,q,q,a,a,q); }", q=3D"\"",s,q,q,a=3D"\\",q,q,q,a,a,q); } -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist