001
26.08.2003, 15:53 Uhr
virtual
Sexiest Bit alive (Operator)
|
Da das Rästel vielleicht abschreckend wirkt, hier ein kleiner Hint (darf beliebig reused werden, ist ja für einen guten Zweck )
C++: |
#include <stdio.h>
char letters[26][7*5+1] = { " *** " "* *" "* *" "*****" "* *" "* *" "* *", "**** " "* *" "* *" "**** " "* *" "* *" "**** ", " *** " "* *" "* " "* " "* " "* *" " *** ", "**** " "* *" "* *" "* *" "* *" "* *" "**** ", "*****" "* " "* " "**** " "* " "* " "*****", "*****" "* " "* " "**** " "* " "* " "* ", " *** " "* *" "* " "* " "* **" "* *" " *** ", "* *" "* *" "* *" "*****" "* *" "* *" "* *", " * " " * " " * " " * " " * " " * " " * ", " *" " *" " *" " *" " *" "* *" " *** ", "* *" "* * " "* * " "** " "* * " "* * " "* *", "* " "* " "* " "* " "* " "* " "*****", "* *" "** **" "* * *" "* *" "* *" "* *" "* *", "* *" "* *" "** *" "* * *" "* **" "* *" "* *", " *** " "* *" "* *" "* *" "* *" "* *" " *** ", " *** " "* *" "* *" "* *" "* * *" "* * " " ** *", "**** " "* *" "* *" "**** " "* *" "* *" "* *", " *** " "* *" "* " " *** " " *" "* *" " *** ", "*****" " * " " * " " * " " * " " * " " * ", "* *" "* *" "* *" "* *" "* *" "* *" " *** ", "* *" "* *" "* *" "* *" "* *" " * * " " * ", "* *" "* *" "* *" "* *" "* * *" "** **" "* *", "* *" "* *" " * * " " * " " * * " "* *" "* *", "* *" "* *" " * * " " * " " * " " * " " * ", "*****" " *" " * " " * " " * " "* " "*****" };
void print(char letter) { int z,s; /* Nur großbuchtaben */ if (letter<'A' || letter >'Z') return;
for(z=0; z<7; ++z) { for(s=0; s<5; ++s) { putchar(letters[letter-'A'][5*z+s]); } putchar('\n'); } }
int main() { char c; for(c='A'; c<='Z'; ++c) { print(c); putchar('\n'); } }
|
-- Gruß, virtual Quote of the Month Ich eß' nur was ein Gesicht hat (Creme 21) |