/ * ================================================================================================================================================================ ============================
*
* BIBLE.C
*
* Smith_135@163.com
* QQ: 58101543
* 2004.7.10
* CopyRight (c) Meteor135
* Version 1.0
* =========================================================================================================================================================================================== ===========================
* /
/ *
#include
Main (t, _, a) char * a; {return! 0 : 1, T <_? Main (t 1, _, a): 3, main (-94, -27 t, a) && t == 2? _ <13? Main (2, _ 1, " % S% D% D / N ": 9: 16: T <0? T <-72? Main (_, t, "@n ' , #' / * {} w / w # cdnr / , {} r / * de} , / * {* , / w {% , / w # q # n , / # {L , / N {N , / # n , / # / ; # q # n , / k #; * , / 'R:' D * '3,} {w k W'K:' } e # '; DQ #' L / Q # ' d'k #! / k #; q #' r} ekk #} w'r} Ekk {nl] '/ #; # q # n') {) #} w ') {) {) { NL] '/ # n'; D} rw 'i; # / ) {nl]! / n {n # '; r {# w'R nc {nl]' / # {l, 'k {rw' ik {; [{nl] '/ w # q # n'wk NW '/ IWK {kk {nl]! / w {% 'l ## w #' i;: {nl] '/ * {q #' ld; r '} {nlw]! / * de}' C / ;; {nl '- {} rw]' / ,} ## '*} # nc,', # nw] '/ kd' E} ; # 'RDQ # w! nr' / ')} } {rl # '{n' ') # /}' } ## (!! / "): t <-50? _ == * a? Putchar (31 [a]): main (-65, _, A 1): Main (* a == '/') T, _, A 1): 0 "! EK; DC I @ BK '(q) - [w] *% n r3 # l, {}: / nuWloca-o; m .vpbks, fxntdceghiry"), A 1);} * / /// // "! Ek; DC i @ BK '(q) - [w] *% n r3 # l, {}: / nuWloca-o; m .vpbks, fxntdceghiry; //! -------------------------------! /// /// // @n ' , #' // on the / / -------------------------------------------------------------------------------------------- --------------------- // * {} w / w # cdnr / , {} r / * de} , / * {* , / w {% , / w # q # n , / # {l, , / n {n , / # n , / #; # q # n , / k #; * , / // First Second Third Fifth Fifth Six Seventh Eighth Ninth Tenth Eleventh TWELTH / / -------------------------------------------------------------------------------------------- --------------------- // 'R:' D * '3,} {w k W'K:' } e # '; DQ #' L Q # ' d'k #! // days of christmas my true love gave to me / / -------------------------------------------------------------------------------------------- --------------------- // / k #; q # 'r} ekk #} w'r} Ekk {nl]' / #; # q # n ') {) #} w') {) {nl] '/ # n '; D} rw' i; #) {nl]! // Twelve Drummers Drumming, Eleven Pipers Piping, Ten Lords A-Leaping, / / -------------------------------------------------------------------------------------------- --------------------- // / n {n # '; r {w'R nc {nl]' / # {l, 'k {rw' ik {; [{nl] '/ w # q # n'wk nw' IWK {Kk {nl]! // Nine ladies Dancing, Eight MAIDS A-MILKING, SEVEN SWANS A-SWIMMING, / / -------------------------------------------------------------------------------------------- -------------------- // / w {% 'L ## w #' i;: {nl] '/ * {q #' ld; r '} {nlw]! // Six Geese A-LAYING, FIVE GOLD RINGS, / / -------------------------------------------------------------------------------------------- --------------------- // / * de} 'C ;; {nl' - {} rw] '/ ,} ##' *} # nc, ', # nw]' / kd ' E} ; #' RDQ # W! // Four Calling Birds, Three French Hens, Two Turtle Doves / / -------------------------------------------------------------------------------------------- --------------------- // nr '/')} } {rl # '{n') #} ' } ## (!! / // and a partridge in a pear tree. // /// #include #ifdef __turboc__ #include #ENDIF #define end_day 12 #define start_day 1 #if! (start_day> 0 && End_day <= 12 && start_day <= end_day) #error "error! start_day or end_day is not in in!" #ENDIF Const int start_delimiters = 0; Const int numBers_delimiters = 13; Const int gifts_delimiters = 13; Const char * decodetbl = "! Ek; DC i @ BK '(q) - [w] *% n r3 # l, {}: / nuWloca-o; m .vpbks, fxntdceghiry"; Const char * cryptograph = "@n ' , #' / * {} w / w # cdnr / , {} r / * de} , / * {* , / w {% , / w # q # n , / # {L , / N {N , / # n , / # / ; # q # n , / k #; * , / 'R:' D * '3,} {w k W'K:' } e # '; DQ #' L / Q # ' d'k #! / k #; q #' r} ekk #} w'r} Ekk {nl] '/ #; # q # n') {) #} w ') {) {) { NL] '/ # n'; D} rw 'i; # / ) {nl]! / n {n # '; r {# w'R nc {nl]' / # {l, 'k {rw' ik {; [{nl] '/ w # q # n'wk NW '/ IWK {kk {nl]! / w {% 'l ## w #' i;: {nl] '/ * {q #' ld; r '} {nlw]! / * de}' C / ;; {nl '- {} rw]' / ,} ## '*} # nc,', # nw] '/ kd' E} ; # 'RDQ # w! nr' / ')} } {rl # '{n') # /} ' } ## (!! / "; Void Decodeandprint (INT D) { Const char * pc = cryptograph; While (d <0) { IF (* pc == '/') { D ; } } While (* pc! = '/') { Const char * p = decodetbl; While (* p! = * pc) p ; PUTCHAR (P [31]); PC ; } } Void start () { Decodeandprint (- start_delimiters); } Void Number (INT N) { Decodeandprint ("(start_delimiters n)); } void daytome () { Decodeandprint (- (Start_Delimiters NumBers_Delimiters); } Void Gift (INT G) { DECODEANDPRINT (G - (START_DELIMITERS NUMBERS_DELIMITERS GIFTS_DELIMITERS)); } Void Gifts (Int g, int N) { IF (g GIFTS (G 1, N); IF (g> 0) GIFT (G); } Void PrintBible (int N) { #ifdef __turboc__ Static int TEMP = 0; IF ( temp% 5 == 0) Getch (); #ENDIF START (); Number (n); Daytome (); GIFTS (1, n); IF (n PrintBible (n 1); } void main () { #ifdef __turboc__ CLRSCR (); #ENDIF PrintBible; START_DAY; #ifdef __turboc__ Getch (); #ENDIF } / * On The First Day of Christmas My True Love Gave To Me A Partridge in a pear tree. On The Second Day of Christmas My True Love Gave To Me Two Turtle Doves And a partridge in a pear tree. On The Third Day of Christmas My True Love Gave To Me Three French Hens, Two Turtle Doves And a partridge in a pear tree. On The Fourth Day of Christmas My True Love Gave To Me Four Calling Birds, Three French Hens, Two Turtle Doves And a partridge in a pear tree. On The Fifth Day of Christmas My True Love Gave To Me Five Gold Rings; Four Calling Birds, Three French Hens, Two Turtle Doves And a partridge in a pear tree. On The Sixth Day of Christmas My True Love Gave To Me Six Geese A-LAYING, FIVE GOLD RINGS; Four Calling Birds, Three French Hens, Two Turtle Doves And a partridge in a pear tree. On the seventh day of christmas my true love gave to me Seven SwanS a-swimming, Six Geese A-LAYING, FIVE GOLD RINGS; Four Calling Birds, Three French Hens, Two Turtle Doves And a partridge in a pear tree. On The Eigth Day of Christmas My True Love Gave To Me Eight MAIDS A-MILKING, SEVEN SWANS A-SWImming, Six Geese A-LAYING, FIVE GOLD RINGS; Four Calling Birds, Three French Hens, Two Turtle Doves And a partridge in a pear tree. On The Ninth Day of Christmas My True Love Gave to Me NINE LADIES DANCING, EIGHT MAIDS A-MILKING, SEVEN SWANS A-SWIMMING, Six Geese A-LAYING, FIVE GOLD RINGS; Four Calling Birds, Three French Hens, Two Turtle Doves And a partridge in a pear tree. On The Tenth Day of Christmas My True Love Gave To Me Ten Lords a-leaping, NINE LADIES DANCING, EIGHT MAIDS A-MILKING, SEVEN SWANS A-SWIMMING, Six Geese A-LAYING, FIVE GOLD RINGS; Four Calling Birds, Three French Hens, Two Turtle Doves And a partridge in a pear tree. On The Eleventh Day of Christmas My True Love Gave To Me Eleven PiPERS PIPING, TEN LORDS A-Leaping, NINE LADIES DANCING, EIGHT MAIDS A-MILKING, SEVEN SWANS A-SWIMMING, Six Geese A-LAYING, FIVE GOLD RINGS; Four Calling Birds, Three French Hens, Two Turtle Doves And a partridge in a pear tree. On The TWelfth Day of Christmas My True Love Gave to Me Twelve Drummers Drumming, Eleven Pipers Piping, Ten Lords A-Leaping, NINE LADIES DANCING, EIGHT MAIDS A-MILKING, SEVEN SWANS A-SWIMMING, Six Geese A-LAYING, FIVE GOLD RINGS; Four Calling Birds, Three French Hens, Two Turtle Doves And a partridge in a pear tree. * /