Anonymous user
Old lady swallowed a fly: Difference between revisions
→{{header|C}}: shorter code
(→{{header|C}}: shorter code) |
|||
Line 4:
Boring, ad hoc dictionary based decompression. The encoder was arguably more interesting, though.
<lang c>#include <stdio.h>
char *dict[] = {
"\x5""fly,\x6\xc\x1\xa,/That wr\xd""and w\xd"
"and t\xdinside her;\x3\xa\xe\xc\x8 //\x5\x10;/"
"\x9 \x1\x12;/What\xbhog,\x11\x12;\x3\x12\x4\xf,\x9\x1"
"\x9.../She's dead, of course!/",▼
"cow,\x6w how s\x13\xb""cow;\x3""cow\x4\x12,\x3\x12\x4\xf,"
"There was an old lady who""\x2""a ", "\x10""d ",▼
"fly", "spider", "bird", "cat", "dog", "cow", "horse",▼
" to catch the ", "\x18why she\x2""a ", "\x3 - Perhaps she'll die!//", ",/",▼
"
▲ "/I
"\x3\xf\x4\x10,\x2\xc", "spider", " a ", "w why", "iggled ",
};
void
{
if (*s
else
} while (*++s);
}
int main()
{
return 0;
}</lang>
=={{header|PHP}}==
{{incorrect|PHP|The program does not produce the correct lyrics. (See talk page)}}
|