C language to write a birthday card

Source: Internet
Author: User
a Birthday greeting card written in C language

K written in 2010.10.23 name color Happy compilation environment VC6.0

#include <stdio.h> #include <windows.h> #include <conio.h> #include <math.h>//_______________ _____________ #define N 100//produces a color//____________________________________________________________________________ ____________________________________ extern char s_1[]={"☆ I have collected all the beauty of programming for you, put on the candlestick of your birthday. Hide what can be said in the bud, and let it be the secret of the stay.
"}; extern char s_2[]={"☆ A bowl of sweet longevity noodles, somersault noodles is my long wish, a trace of silk will you wound forever, may health and happiness, happiness and sweetness with you day and night, I wish you a happy birthday."
"}; extern char s_3[]={"☆ Wish my Heart is a flower, blooming in your sky, for your birthday to add a little warm mood, for your happiness add a beautiful brilliance."
"}; extern char s_4[]={"☆ In this celebration of the day, although I do not have flowers and wine gift, but there is a song in my heart, I wish you a happy life."
"}; extern char s_5[]={"☆ Green is the color of life, green romance is the romantic life." Therefore, I chose this green world, presents the gift to your birthday. May you be full of energy, youth is always there.
"}; extern char s_6[]={"☆ When blowing birthday candles when I make a wish, when the meteor across the sky when I make a wish, when writing this program I also make a wish: I would like to see the program of the person's life happy.
"}; extern char s_7[]={"☆ You use a beautiful ring into a volume of ink fragrance of the calendar, every year I will be on this page of the calendar with deep feelings of Miss bless your birthday.
"}; extern char s_8[]={"☆ on your birthday this day, will be happy notes, as a gift to you, wish you have 365 beautiful days, sincerely bless you-happy birthday."
"}; extern char s_9[]={"☆ in life there are always some friends to forget; there are always some days in the year that most cherish; from the spring to the winter, from the unfamiliar to the familiar, although not always greeting, on the special day wish you Happy birthday.
"}; extern char s_10[]={"☆ Only people who know how to live, can appreciate the delicate flowers, only know the love of the people, to appreciate the fragrance of the heart, I wish you have a special birthday.
"}; extern char s_11[]={"☆ Sun and moon rotation forever, love if sincere long accompanied, no matter you are in the ends of the earth, I will always remember this day." Happy birthday to you.
"}; extern char s_12[]={"☆ In this joyful day, I sincerely wish you a long stay in youth, would like a quiet and joy quietly to you, happy birthday.
"};
extern char s_13[]={"☆ Happy, happy, happy by your birthday, I put the blessing of sincerity into a beautiful mystery, brought to your birthday party, let you guess ..."}; extern char s_14[]={"☆ Hello." Today is your big birthday, old friend. At this moment, I want to send you thousands of orders and greetings, this is the most valuable, "shabby".
"}; extern char s_15[]={"☆ Two green leaves, full of its roots of friendship, a message, condensed my blessings to you. May the happy hug you, in this special day which belongs to you, happy birthday.
"}; extern char s_16[]={"☆ Pray for your soul--green grass, permanent youth, smile often open." I wish you a happy birthday.
\ n "}; extern char s_17[]={"wish you happiness."
\ n "};
extern char s_18[]={"K"};
extern char s_19[]={"2010.9-24"};
extern char * ssum[]={s_1,s_2,s_3,s_4,s_5,s_6,s_7,s_8,s_9,s_10,s_11,s_12,s_13,s_14,s_15,s_16,s_17,s_18,s_19}; //_____________________________________________________________________________________________________________
___ Char randk ();
       void Main () {int i=0; Long f=0;
        Char s[10]= "COLOR";
        Puts ("\n\n\n\n\n\n\n\n\n\n");
          for (i=0;i<n;i++) {///To change the number of times s[6]=randk (); S[7]=randk ();
          System (s);//Call CMD's color command printf ("Happy Birthday \r★! ★");
          f=0;
        while (f<81474400) f=f+1;
        } puts ("Shuangshuang: \n\n\n");
                s[6]= ' d '//background is D light red//output to say for (i=0;i<19;i++) {//For the number of rows to output puts ("\n\a");
                S[7]=RANDK ();
                System (s);//Call CMD's color puts (* (ssum+i));
                f=0;
                         while (f<214748325) {f=f+1;
                         F=f-1;
                f=f+1;

} getchar ();
        The char randk () {//produces the immediately color char a=0;
        A= (char) ABS (rand ()%16);
          if (a >=10) {a-=10;
        a+=97;
        
        }else a+=48;
return A; }
From: http://www.oschina.net/code/snippet_100492_14759

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.