Jump to content

Old lady swallowed a fly: Difference between revisions

m
m (→‎{{header|C}}: ok done with it)
Line 6:
 
char *dict[] = {
"\x6""_fa fly,\x7why\x3\xf_c _m,/That wr\xc""andwr_kand w\xcw_kand t_kinside her;_`_n;/"
"How absurd_g_n!_h`cat;/Fancy that_gcat!_ddog;/What a"
"and t\xcinside her;\x1""bird;/How absurd\xa"
" hog_gdog!_jcow,_ihow s_la cow;_acow_bdog,_jhorse.../"
"bird!\xb\x1""cat;/Fancy that\xa""cat!\x5\x9 \x3"
"She's dead, of course!/", "_a_m_bfly;_c ", "/S_lthe ",
"dog;/What a hog\xa""dog;\xd""cow,\x7how\xe""cow;\x2"
" to catch the ", "_iwhy s_la fly - Perhaps she'll die!//_fa",
"cow\x4""dog,\xdhorse.../She's dead, of course!/",
"\x2_acat_b_n,_h`", "cat\x4""bird,\xb swallow", "There was an old lady who\x8who_eed ",
"\x9\x3", "/She\x8""ed the ", "\xe"
"fly, -to_e Perhapsa she'll", die!//\x6"_a_n_b_m,_", "/I todon't catchknow the", "_adog_bcat,_d",
"iggled ", "he_eed ", "spider", "bird",
"\x2""cat\x4""bird,\xb", "There was an old lady who\x8"
"ed a ", "/I don't know ", " swallow", "\x2\xf\x4"
"fly;\x7why", ", to\x8 a ", "\x2""bird\x4\xf,", "iggled ",
"\x2""dog\x4""cat,\x5\x1", " she\x8""ed a ", "spider"
};
 
voidint writeoutprint(char *c, int s)
{
do {
if (*s) <s 32)= writeoutprint(dict[(int)*sc - 95], 0);
else putcharif (*sc == '/_') ?s '\n'= : *s)1;
else putchar(*c == '/' ? '\n' : *c);
} while (*++sc);
return s;
}
 
int main()
{
writeoutprint(dict[0], 0);
return 0;
}</lang>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.