恋爱计时器
#include <stdio.h>
#include <stdlib.h>
struct date
{
int year;
int mouth;
int day;
};
int main()
{
int dayst(struct date a, struct date b);
int xingqi(struct date a, int z);
struct date a, b;
int x, y;
printf(" ");
scanf_s("%d %d %d", &a.year, &a.mouth, &a.day);
printf(" ");
scanf_s("%d %d %d", &b.year, &b.mouth, &b.day);
x = dayst(a, b);
printf(" 今天是我们相爱的%d天\n 老婆我爱你!\n I love you!\n", x);
printf(" ****** *** *** ** ** \n");
printf(" ** ***** ***** ** ** \n");
printf(" ** ************* ** ** \n");
printf(" ** *********** ** ** \n");
printf(" ** ********* ** ** \n");
printf(" ** ******* ** ** \n");
printf(" ** *****
#include <stdlib.h>
struct date
{
int year;
int mouth;
int day;
};
int main()
{
int dayst(struct date a, struct date b);
int xingqi(struct date a, int z);
struct date a, b;
int x, y;
printf(" ");
scanf_s("%d %d %d", &a.year, &a.mouth, &a.day);
printf(" ");
scanf_s("%d %d %d", &b.year, &b.mouth, &b.day);
x = dayst(a, b);
printf(" 今天是我们相爱的%d天\n 老婆我爱你!\n I love you!\n", x);
printf(" ****** *** *** ** ** \n");
printf(" ** ***** ***** ** ** \n");
printf(" ** ************* ** ** \n");
printf(" ** *********** ** ** \n");
printf(" ** ********* ** ** \n");
printf(" ** ******* ** ** \n");
printf(" ** *****