Tips for male Love: C program for getting days of love with my girlfriend

Source: Internet
Author: User

Dear fellow male, I wonder if your girlfriend has asked you such a question one day ~~

Scenario reproduction:

Girlfriend: "The weather is good today ."

You: "Yes"

Girlfriend: "Today is the day we met ?"

You: "Did we know each other in October 2 ?"

Girlfriend: "have we known each other for a few days ?"

At this time, you may have several answers:

Select Reply 1: "I don't know. I only remember that it was July 22, October 2 ."

Girlfriend: "I don't even remember for a few days. It seems that you don't love me. Let's break up ."

Select Reply 2: "No ."

Girlfriend: "I don't even remember for a few days. It seems that you don't love me. Let's break up ."

Select reply 3: "Nima, do you need to know this ."

Girlfriend: "I don't even remember for a few days. It seems that you don't love me. Let's break up ."

Select Reply 4: "We met in December. Today is December 6, 6-2 = ."

Girlfriend: "It won't even count for a few days. I have to consider our next generation's IQ. You have a low IQ. Let's break up ."

Select reply 5: "5 days ."

Girlfriend: "It's so clear, do you want to wait 100 days and then drop me? It seems that you don't love me. If you want to drop me, I will drop you first. Let's break up ."

......

However, you never expected to get the girl's heart in the end, because you remember the day before. Now let's take a look at the C language code for getting the current time:

Code 1:

# Include <stdio. h> # include <time. h> int main () {time_t; struct TM * timenow; time (& T); timenow = localtime (& T); printf ("Current Time: % s ", asctime (timenow); Return 0 ;}

Code 2:

#include <stdio.h>#include <time.h>int main() {    char time[128];    _tzset();    _strtime(time);    printf("time:\t%s\n", time);    _strdate(time);    printf("date:\t%s\n",time);    return 0;}

Code 3:

#include <stdio.h>#include <time.h>int main() {    time_t ltime;    char tmpbuf[128];    time(<ime);    printf(ctime(<ime) );    return 0;}

Code 4:

# Include <stdio. h> # include <time. h> int main () {time_t = time (0); char TMP [64]; strftime (TMP, sizeof (TMP ), "% Y/% m/% d % x % A % j day % Z this year", localtime (& T); puts (TMP); Return 0 ;}

Therefore, according to code 4, you only need to modify it a little, so that you can quickly get to know your girlfriend for a few days. Don't thank me for being a red scarf.


Tips for male Love: C program for getting days of love with my girlfriend

Related Article

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.