Write a love letter to a girlfriend through C language

Source: Internet
Author: User

Moved from 51CTO to CSDN has been nearly one months, read the previous blog, the occasional Discovery code copy paste can not be used, there are some garbled.


So, just tidy up a bit, it's time to review


/* ***************************************************** * Enter your name and birthday to see wonderful content * has been compiled under vc++6.0 * Author: Ah du * email: [E Mail protected] ***************************************************** * * #include <stdio.h> #include <    string.h> #include <stdlib.h> #include <math.h>int main (void) {int T, add = 0;    Char n[20];    Double y;    Unsigned m, I, J;    printf ("My love, enter your name and birthday\n");    printf ("The Format like:adu19940710");    printf ("\ n");    scanf ("%s", n);    for (t = 0; t < t++) Add + = N[t];        if (1391 = = Add) {//printf ("ok!\n");           for (y = 1; y >=0; y-= 0.1) {m = asin (y) * (N[15]/5);           for (i = 0; i < m; i++) {Putchar (");           } putchar (' * '); for (; i < (n[1]-66)-M; i++) {if ((n[0]-89) = = I | |               (n[2]-94) = = i) putchar (' + '); else if (i > (n[3]-93) && i < (n[4]-78) && (n[5]-117) = = m) putchar (' + ');           else Putchar (");                               } putchar (' * '); for (; i < (n[6]-59); i++) {if ((n[7]-66) + M = = I | |                (n[8]-48)-M = = i) putchar (' * '); else if ((n[9]-3)-sqrt (double (25-(5-m) * (5-m)) = = I | | (n[9]-3) + sqrt (double (25-(5-m) * (5-m)) = = I | | (n[9]-4)-sqrt (double (25-(5-m) * (5-m)) = = I | |                (n[9]-4) + sqrt (double (25-(5-m) * (5-m)) = = i) putchar (' O ');           else Putchar (");        } putchar (' \ n ');            } for (y = 0, j = 0; y >=-2; y-= 0.1) {int yy = Fabs (y) * 10;            m = (ACOs (y*0.5) * 20)-31; if (! (            Yy% 6)) J + +; for (i = 0; I < (n[12] +); i++) {if (m + j = = I | | | 63-m-J = = i) putchar (' * ');                else if (y >= -0.6 && (38-yy = = I | | yy + + = i)) Putchar (' V '); else if (y >= -1.6 && y < -0.7 && (31-SQRT (Double (25-(12-YY) * (12-yy)) = = I | | + sqrt (double (25                -(12-YY) * (12-YY))) (= i)) Putchar (' E ');                else if ( -1.2 = = y && i > (n[13]-20) && i < (N[14]-17)) Putchar (' E '); else if (yy = = (n[16]-39) && i = = 31) | | ((i = =) && yy = = 14) | |                    ((i = = | | i = () && yy = = 16))                Putchar (' e ');            else Putchar (");        } printf ("\ n");    }} else printf ("It's not write-to-you-see GE J8 a!\n"); return 0;}


After running





Write a love letter to a girlfriend through C language

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.