0 thích 0 k thích
5.3k đã xem

Write a program that prompts the user to enter two dates and then indicates which date comes earlier on the calendar (m/d/yyyy):
 Sample input:

3/6/2008
5/17/2007

Sample output:

5/17/2007 is earlier than 3/6/2008

 

Sample input:

3/6/2007
5/17/2008

Sample output:

3/6/2007 is earlier than 5/17/2008

 

Sample input:

3/6/2007
3/6/2007

Sample output:

Same day!

 

[Exercise] Coding (C) - đã hỏi trong C
ID: 22673 - Xem được từ: Không giới hạn - Hiệu lực đến: Không giới hạn

đã sửa bởi | 5.3k đã xem
0 0
Called for Help

56 Trả lời

0 thích 0 k thích
Hidden content!
#include *** * * *

#include ** ***** *



int compare(int, int);



int main(){
****** ** ** ** *** inputYear1, inputMonth1, inputDay1;
** *** ** ** * ** inputYear2, inputMonth2, inputDay2;
** * * * ** * * ** *
*** * * *** ** * *** * * **** ***** * **** ******* **** * * ** * * * ** ** * ** *
** * **** ** * * * ** ** * *** * *** ** * ** ****** ** *** ** * * ** ** ***
*** ** ** *** * * **
* ** * **** ** ***** ** * ** **** inputDay, inputMonth, inputYear);
* * * * * * * *** * ** ** * * * inputYear2) == 1)
* ***** * * * *** * * ** * * * * * ** * ** * * * **** ** * is earlier than * *** inputMonth1, inputDay1, inputYear1, inputMonth2, inputDay2, inputYear2);
* * ****** ***** * * ** ** ** * * ** * * inputYear2) == 2)
****** ** * * * * ** **** * ** ******* * * * **** * * ** ** ** ** is earlier than ******* inputMonth2, inputDay2, inputYear2, inputMonth1, inputDay1, inputYear1);
* *** ** **** ******* *
***** ******** * * * * ** * **** ** **** * ** * ** * inputMonth2) == 1){
** * ** ** ** ** ** ** * **** *** * * ** * * ** * * ** * ********* * * ** is earlier than * **** * inputMonth1, inputDay1, inputYear1, inputMonth2, inputDay2, inputYear2);
** * **** * **** **** ** ** ** ******** ** * * **
* ** ** * * * * * ** * ****** * ** * **** *** ** **** * * ** inputMonth2) == 2){
* ** * ** **** * ** * * * ************ ** ** *** ** ** * ** * ** ** *** * ** is earlier than * * * inputMonth2, inputDay2, inputYear2, inputMonth1, inputDay1, inputYear1);
* * * * * ** **** * * * * *** * **
** * * * ** * **** * ** ** ***** * ** ** * * **
* * * * * ** *** * *** ** ** * ** * * * * ******** * * * * ** * * ** * inputDay2) == 1){
** * ***** ** * * ** * * *** *** * * ** *** * *** ** * ******* ** * * **** ** * * * ** is earlier than ** * * inputMonth1, inputDay1, inputYear1, inputMonth2, inputDay2, inputYear2);
****** * * ******* * ** * *** ****** **** * * ** *** **** *
*** * * *** ** ** ** *** **** *** * *** *** ** ** * ** * * **** ** * *** * inputDay2) == 2){
* * **** *** * * ** * * ** ***** * * *** * *** * *** * * * * * ** ** ** * * **** * * * * *** * ** ** is earlier than * *** * ** inputMonth2, inputDay2, inputYear2, inputMonth1, inputDay1, inputYear1);
* *** * ** *** ** *** * * **** ** * * * **** ** *** ** * *****
* *** * ** * * * * * ** ** ** * * * * * * * *** * * * * ** * ** *
*** **** * ** ** * *** * * * ** ***** ** ** * **** ** ** *** * * * **** **** ****** ***** **** *
**** * ** * * * * *** ** *** * * * **** * *** ** ** ** * ** * * * **
** *** ** ****** ** *** * ***** ***** ** **
* ** * ** *** * *
* ** ******** **
*** ** ** *** * * *** 0;

}



int compare(int a, int b){
*** * **** * *** *****
* **** *** * ** * * ** < b)
*** * * ******** * ** ** ** ** * * ** 1;
** * * ***** ** * ***** if(a > b)
* *** * **** * * * * * ** ** ***** *** * 2;
** * * ** * * * * ** * ** ***
** * *** ** ** ** ** * *** ** * ** **** 0;

}
trả lời bởi (-188 điểm)
0 thích 0 k thích
Hidden content!
#include<stdio.h>

int main()

{

    int day,day2,month,month2,year,year2;


********* *** * * ** *** * * *** * ** * ***** ** * ** *
* * * ** * ** ** * ** **** * * **** **** * * *** *
* * ** ** * ** ** ***** ** *** ****

    {
* * ** * * * ** ** ** * * ** ** ** * is earlier than %d/%d/%d",day2,month2,year2,day,month,year);

    }

    else if(year<year2)

    {
** ** **** ** *** * * ** * * * ** * * * * * * *** * * is earlier than %d/%d/%d",day,month,year,day2,month2,year2);

    }

    else

    {
* ** * * ** ** * ** **** ** * **** *** * *** * ** *
* ** * * * * ** *** * ******** * *
** ** *** * * * * * ***** ** * ****** * * ** **** * *** ***** ** * * is earlier than * * ** *** * * ** **** ****
* * * ** * * * * * * * ** ** ** * *
* ** * * **** * * * * * ***** ** * ** ** *** * if(month2>month)
* *** ** *** * * ** * ** **** ** ** *
*** ** **** * ***** **** *** * * * ** ** * ** * * ** * * ** * * * * ** ******** is earlier than %d/%d/%d",day,month,year,day2,month2,year2);
** * ** * * * *** * ** * ** * * *
* * * ** * ** *** *** ***** **** ** ** *
**** * * **** * * * **** ** * * * ** *
** * ** * ***** ** ** * * ** ** *** ** ********** * * * * ** ** ** * ****
** * * * * * ** **** ******* ** * ** ** * ** **** * ** ** * *** **
** *** * ** *** * **** ** * * ** *** * * * * * ** * * * ***** * ** * ** *** * *** **** ** ** * * * * * ** * *** is earlier than * * ** * * * ** * * * *
*** **** *** **** *** ** ** *** * * ** *** * ** * * * ** *** ** ** *
**** * ** *** * * ** ** *** * * * ** *** *** * *** *** *** **** if(day2>day)
* *** *** ***** **** * * * * * **** * *** * ** * * * *****
* * ** ** *** ***** * ** **** *** ** *** * * * * * * * * **** ** * **** **** * *** *** * ** * * * is earlier than * * ** * * * ***** * ** ***
*** * **** **** ***** ** **** * *** * * *** * *** ** *** * * *
**** * * * ** ** * * * ** * * * ***** * * * *** *** **
*** * ** * * * ** *** * ******* * * * ** **** *** **** * * **
* **** ** * * ***** * ** ********* * * ** *** * ** *** ** *** ** ** ** *** * *** * ***** ** * ** * day!");
* *** * ** * ** * * * ** ** ** * ** **** * *** *** * * * * * *
**** * *** ** **** ** *** * * **** ** * ****

    }

}
trả lời bởi (-366 điểm)
0 thích 0 k thích
Hidden content!
#include <stdio.h>

int main(void)

{
** ** * *** ** **** m1, m2, d1, d2, y1, y2;
*** * ******* ** * * ** ** ** * * * * * * &m1, &d1, &y1);
** ** * ** *** ** ** ** * *** * ** ** * * &m2, &d2, &y2);


* * *** * * **** * * (y1<y2)
*** **** ** * **** ** *** * * * ** *** * * ******* * * * ** * is earlier than * * * * d1, y1, m2, d2, y2);
* * * ** ***** *** * * if (y1==y2)
*** ****** ** ** * * ** *
* ** *** ** *** * * * * ** *** **** *** * * (m1<m2)
**** * *** * ** * *** ***** * * * * * ** * ************* **** * * * ** * is earlier than * *** ***** * * * d1, y1, m2, d2, y2);
* * * * * * ** * ** * **** ** * ** ** * ** * if (m1==m2)
* ** ***** ** * * *** ** * * ** * *
* *** * * ******** * * * * * ** * ** * **** ** * * * * * *** * (d1<d2)
** ********* * ******* * ** ** *** *** * ****** *** * **** **** **** * * ** * ** *** *** * ** * * is earlier than %d/%d/%.2d\n",m1, d1, y1, m2, d2, y2);
**** * ** * * * ** * * * ** ** * * * ***** *** * ** if (d1>d2)
* ** *** ** * ** ***** ** *** * * **** * ** * * * *** *** * * * *** ** * ** * *** ** * * ** is earlier than * * *** ** d2, y2, m1, d1, y1);
** ** **** ** * * * * ** **** ** * * * ** ***** *** * * * * ** * *
* ** * * **** **** * ** ** * ** *** ***** ** * *** * *** * * * * * *** * * ** * * ** ******** day!");
**** ** * * * * ** ** ** ** * * * **
** * * * ***** * * * * * * ** ** ** ** ****
***** * * * * **** ** ***** * * *** * * * ******* ** ** * ****** * ** ** ** is earlier than %d/%d/%.2d\n",m2, d2, y2, m1, d1, y1);
* * ****** *********
* ** ** ** ** **** * *
** *** *** ** ** * ** * * *** ** ** ** * ** ** * * * is earlier than %d/%d/%.2d\n",m2, d2, y2, m1, d1, y1);


* ****** *** ** *** *** ** 0;

}
trả lời bởi (-215 điểm)
0 thích 0 k thích
Hidden content!
#include<stdio.h>

int main()

{
***** ****** **** * * * * a1, a2, a3, b1, b2, b3;
* ** * ******** flag=0;


* * ** ** ** * * * ** *** ** * **** * ** &a1, &a2, &a3);
*** *** ** ** ** *** ** ** * * * &b1, &b2, &b3);


* ** ** * ***** * ** ****
* * ** **** * *
* *** ** * *** * * ** * ** *** **

    }
* *** * ** * * * * * ** * if(a3==b3)
* * ** ** * **
*** * * ** ****** * * ** ** * ** * * * * *
* ****** * ** * * * ** * **** *** * * *
* *** ** * *** * * ****** ** **** ** * *** * ** *** **** * *
* * * * * * *** ** * * ** ** ** * * * *
** * *** * * *** ** * * * * ** ** ** ** ** if(a1==b1)
****** * * ****** * ****** **** * **
* ** * ** ** ** *** * * * * * * *** **** * *** * * * * * *
* * * * *** ** * * ** ***** ** * ***** ** ***** *** *** * *** * * **
** ** **** ** *** ** * * *** ** * * * * **** * *** ** * *** ** * *** *** * ***
*** * * *** ** * * * *** ** ** * * * * * ** *** * * * *
*** * ** *** * ***** * * * * * * ****** ***** ** * *** * ***** if(a2==b2)
** **** * * * * ** *** ** ** *** * *** *** * * ** **** *
* * ** * * ** ** ** *** *** * * ***** **** *** * * ** * ***** ****** * **** * ** *
**** * *** *** * * * * ** ****** *** ** * * **** *** * **
** **** ** * *** *** * ** ** *** * ** **

    }






* ****** ** ** * **** * * ****

    {
** * ** * * * *** * * ***** *** *** ** ** ** * ** * is earlier than %d/%d/%d", b1, b2, b3, a1, a2, a3);

    }
** * * ** *** * **** if(flag==2)

    {
* * * * ** * * *** ** * ** ** ** **** ***** *** *** * day!");

    }
* ** * * ******* ** *

    {
* * * * ** * **** *** * * ** ******* * * * * * * is earlier than %d/%d/%d", a1, a2, a3, b1, b2, b3);
* ** ** **** * * ** *


* * ** ** * ** * *** 0;



}
trả lời bởi (-368 điểm)
0 thích 0 k thích
Hidden content!
#include<stdio.h>

int main()

{
* *** * * ** **** * a1, a2, a3, b1, b2, b3;
** ** ** * * * ** ** flag=0;


** * *** * ** * * ** ****** *** ** * &a1, &a2, &a3);
** ** * ****** *** * * * ****** * * &b1, &b2, &b3);


* *** * * * * * * ** ** * ** * *
** * * ** ****** * *
**** * * * ***** * * * * ** ** **** * ****

    }
* * * * * **** * *** if(a3==b3)
* * * * * *** *
* ** ** * ******** * * ** **** * * **** **** * * * *
* * * * *** ** ** * * ** * *** *** *** ****
* * **** ** ***** ** ****** * ** *** * **** * * * ** * * *
***** * ** * * ***** * * * * * ** *** *** *
** * *** * *** ***** * * *** ** if(a1==b1)
** *** * * **** ** ****** * **** ** *** ** ***
* ** ** * * *** * ***** * ** ** * *** * ** * * *** ** ** ** * ** **
** *** *** ** ***** * * * ** * * ******* *** **** * * * * *** *
* * * ** ** * ** * * ** * * * ** * *** * * **** * * *** ** ** **** * * *** * * ** * *** *
* **** ** *** * * * *** *** * ** **** * *** *** * * *** * *
* *** ** * ** *** *** * ** * * * ** ** * * * ***** ** * ** * if(a2==b2)
*** **** *** ** ***** **** **** * ** * * * ** ** *** * * **
* **** ****** * * * ** * ***** * * ***** ** *** * ** ***** * *** * * * ** ** ** * * *** *
***** ** * * * ** ** * * * * * ** *** *** * * **
*** * * * * ***** * * * * ** * * ****** * *

    }






** ** * *** * ** * ** *** *

    {
***** * * * * *** **** *** ** ***** ** * * * *** *** ** is earlier than %d/%d/%d", m1, m2, m3, n1, n2, n3);

    }
** ***** *** *** * *** if(flag==2)

    {
**** ***** ** ******** ** *** **** *** ** ****** *** * * * *** day!");

    }
***** **** * ** ******

    {
** * * * *** * * *** **** * * * ** * * *** * ** ** ** * is earlier than %d/%d/%d", n1, n2, n3, m1, m2, m3);
*** * ** * ***


** ** * * *** ***** ** * 0;



}
trả lời bởi (-368 điểm)
0 thích 0 k thích
Hidden content!
#include<stdio.h>

int main()

{
* * **** * * **** * * * * a1, a2, a3, b1, b2, b3;
* * * *** * ** * * flag=0;


* *** * *** *** ***** ** * ********* * * *** * &a1, &a2, &a3);
** ** * * * * * * **** * ** ** * ** ***** * &b1, &b2, &b3);


** ** * **** * * ** * **** * * *
** ***** ******* ****
* *** * *** ** ** *** ** * ** ****** * ** * * **
** * * **** * * * ** *
* ** * ** * ** **** **** if(a3==b3)
** * ** * *** * *** *
*** ** ** * * ** * * * ** *** ** * * **
* *** * *** ** * ** * * ** ** ***
** ** * ** * * *** * * * * * * ** **** ** *** *** * * ***
** ** * * * * ******** * * **** ** * ** * ****
** * **** *** * ******* ** *** * * * * * if(a1==b1)
* ** * * * ** * * * ***** * **
* * * *** ** * * ** * * ** ** ** * * * * * * **** * *** ** ** *
** **** * ** * * ** *** * * ** * * * ** * **** *** **
* *** * ** ***** * *** ** * **** ** * * **** * ** * * * * *** ** * ** * * ****
* * * ** * * ** ******* *** * ** * * *** * ** ** ** *** * *
* * *** * * * ** * * * *** * * * ** * * * *** **** **** ** * * if(a2==b2)
** ******* **** * ** * *** ****** ** ** * * **** * * * * * *
******* * **** **** ** ** * ** * * *** ** * * * * * * * * *** **** * * * ***** * * *
* ***** * ** ** * * *** * * * * * *** ** * ****** *** ** ** *** * ** * * ** *
** ***** * * * ** * ** ** * * * * * ** ** *

    }






* * * ** * ******** ******
*** ** * * * * ** * * * *
* * **** * ** * * * ** *** * * * *** * * *** *** ** ** a2, a3, b1, b2, b3));
** * * * *** **** **** *
**** ** * * * * * ** if(flag==2)
* * * ** ** * * *
* * *** * ** ** * * * * * * ******* * ** ** *** ******** day!");
* * * **** * *
**** * * **** * ******

    {
* * ******* ** ** ** * ** * * * * ** *** * * * a2, a3, b1, b2, b3));

    }


***** **** * * * ** * * 0;



}



int first_is_early(int n1, int n2, int n3, int m1, int m2, int m3)

{
* * * * * * * * * * * ** ** * is earlier than %d/%d/%d", m1, m2, m3, n1, n2, n3);

}

int second_is_early(int n1, int n2, int n3, int m1, int m2, int m3)

{
* * * ***** * ** * * * ** ** * * is earlier than %d/%d/%d", n1, n2, n3, m1, m2, m3);

}
trả lời bởi (-368 điểm)
0 thích 0 k thích
Hidden content!
#include<stdio.h>

int main()

{
* *** * ** **** * * ** * a1, a2, a3, b1, b2, b3;
* * ** ** *** **** * *** flag=0;


** *** * * ** * **** *** * *** * * ** &a1, &a2, &a3);
** *** * * * ***** ** *** ** **** ** * * &b1, &b2, &b3);


*** * ** * * *** * ** * *
* *** ** ** *** **
* * * * ** * *** ** * * ** * * *
** ** * * *** ** *** *
* *** * **** ** **** **** ** * if(a3==b3)
* ** *** ** * ** ** ***
* *** * ** **** * * * ** * ****** * * * * ***
**** **** ** *** * *** ** ** ** ***
* *** * *** * * * *** * * ** ***** * ** * *** * ** ** *** ** * ***** ******
** * * * ******* ** ** ** *** * *** *
* ****** ** * *** * * ***** *** *** * **** ** if(a1==b1)
**** * * * * *** ** * ******** ******** * *
* * *** ** *** ** * * **** * ** ** * ** ** * ***** ** * ** * * *** * *****
* * ** * * * * * **** *** *** * *** ****** *** * *** * ******** * * *
*** **** * * ** * ***** * * * * ** ** * ** * * * ***** * *** ** *** *** ** **** * * * ***
* * ** ** * ** ** * ** * * *** **** *** ***** * ** ** * *
*** *** * * *** *** * ** * **** ** * * *** ** * ****** * ** *** *** if(a2==b2)
** * ** ***** ** ** * * * **** * * * * * ** ** * ** * *** * **
* * ** *** * ** * ** * * ** **** * **** *** ** *** ** ** * ** * * ** * ** ******
* *** * * ** * *** ** *** * * ** *** ** * * * ** ** * ***
** *** * *** * * ** *** ** * * ****** *

    }






* * *** * * ****** * ** * * **
* ****** * *** **** *
* * ** * **** **** * * * * * * ****** ****** * * *** * * * a2, a3, b1, b2, b3));
***** ** * ** * *** ***
** * * * * * * ** ** if(flag=2)
* ***** * * * * * * *
** ** *** * * * ** * * * **** * * * ** ***** ** ** *** day!");
*** * * * **** * ** * *
** * * ** *** * * **

    {
* * *** * * * * * * ** * * * ** **** ** *** * ** a2, a3, b1, b2, b3));

    }


*** * ** * * **** 0;



}



void first_is_early(int a1, int a2, int a3, int b1, int b2, int b3)

{
* * ** * ** * * * **** ***** ** * is earlier than %d/%d/%d", b1, b2, b3, a1, a2, a3);

}

void second_is_early(int a1, int a2, int a3, int b1, int b2, int b3)

{
* *** * * ** * * ** * * * ** ** * is earlier than %d/%d/%d", a1, a2, a3, b1, b2, b3);

}
trả lời bởi (-368 điểm)
0 thích 0 k thích
Hidden content!
#include * * ** * **

int main (void)

{
** * *** * **** ** * * * ** * ** dd, yyyy, mm2, dd2, yyyy2;
* * * * * ** * * * * * * * ** ** ** * ** ** ** *** * * **** **
* * ** *** * ** * * ** ** ** ** * * * * * * * * * *** * ***
* *** * **** *** **
* ** ** * * ** *** (yyyy < yyyy2)
* ******* **** **** * *
* * ** * ** ****** * * * ** * * * *** * ** * * * * * is earlier than ** * ** mm, dd, yyyy, mm2, dd2, yyyy2);
* * * ***** ** * *
* * *** *** ** * **** * if (yyyy > yyyy2)
*** **** ** * * **** **
*** *** * * * * * **** * * * * ** * ** * ** ** ****** * * **** is earlier than * * * * * * mm2, dd2, yyyy2, mm, dd, yyyy);
* *** * * ** ** * * * ***
*** * * * * ** * if (yyyy == yyyy2 ** ** *** * ** mm < mm2)
** * ** *** *** ****
** ** ** * ** * * * *** * ***** ** *** * ** * * ** ** ** is earlier than * * ** mm, dd, yyyy, mm2, dd2, yyyy2);
* ** ** ******* * ** * **
* * ** * ** *** ** * * ** if (yyyy == yyyy2 ** * mm * * mm2)
* * * ******* * * * *
* ** *** * **** * **** *** * * ** *** ******* ** ** * * * * is earlier than * * * ** ** mm2, dd2, yyyy2, mm, dd, yyyy);
* * * * * **** ** ** ***
*** * ** * * * ***** * * ** if (dd < dd2)
* ********** * * ****
*** *** * ** **** * * * **** * * * * * * ** **** * is earlier than * ** mm, dd, yyyy, mm2, dd2, yyyy2);
* * * ** ** *** **
* * ** ** * *** **** * if (dd2 > dd)
** *** ***** ** * ** *
****** * ** * ** * ** *** **** * * ** * * * *** * ** is earlier than ** * mm2, dd2, yyyy2, mm, dd, yyyy);
*** ** * * ** ** * * * **
** * * ** ** * ** * ** *
* *** * * * * * * *
* * ** *** * * ** *** *** ** *** ** *** *** * **** ** * *** * * **** * *
* *** ** **** **** ** * *
*** * ** ** * ** * * * 0;

}
trả lời bởi (6 điểm)
0 thích 0 k thích
Hidden content!
#include <stdio.h>

int main(void)

{
*** * * * ** * * * * ** m1, m2, d1, d2, y1, y2;
* *** **** * *** * * * * ****** **** **** * ** &m1, &d1, &y1);
*** * ** ******* * * *** ******* * * * ***** * &m2, &d2, &y2);


** *** ** * ** ** **** (y1<y2)
* ** ***** * ** * ** ** *** * * ** * ** * * is earlier than ***** *** * **** d1, y1, m2, d2, y2);
** * * ** * * *** if (y1==y2)
* ***** ** * *** ** * ***
*** ** * ** ** * ***** **** *** * (m1<m2)
* * * * * ** * * ******* * * **** * ** ** * * * * ** *** ***** **** * is earlier than *** * ** ***** d1, y1, m2, d2, y2);
******* ** ***** * *** *** * * * * ****** ** if (m1==m2)
*** * * *** ***** ** ** * * * * ** * *
** ** *** ** * *** * *** * * ** ** * * ** * * * ** *** ** (d1<d2)
* *** ** ** ** * * * * **** ** * ** **** * *** * ******** * ** ** * **** *** *** ** * ** *** * * * ***** * is earlier than %d/%d/%.2d\n",m1, d1, y1, m2, d2, y2);
* ** *** * **** * ** ****** ** *** * * ******* ** * * * * * * if (d1>d2)
********* ***** *** *** * * * * **** * * * * *** * * ** **** ** * * ** * *** ** * * ***** *** ****** * is earlier than * * ** * ** * d2, y2, m1, d1, y1);
* ****** * *** ** **** * * * *** ** * * * * ** * ** * * ** ******* * **
* ****** * ******* * *** * * ** ** * ***** * ** * *** * * * ** * * ** * * ** * * * *** * ***** day!");
*** * * * * * ** * * ** *** ** * * ** *** * **
* * * * * *** *** * ** ** ** *** * ***
* * ***** * ****** * * * ***** *** * * **** ** * * * ** * * ** * ** * **** ** is earlier than %d/%d/%.2d\n",m2, d2, y2, m1, d1, y1);
** * *** ** * * ******
** *** * ** ** * ** *
** ** * * ********* ** * * * * **** * ******** * ** ** is earlier than %d/%d/%.2d\n",m2, d2, y2, m1, d1, y1);


** * ** ** ** ** * * 0;

}
trả lời bởi (126 điểm)
0 thích 0 k thích
Hidden content!
#include * * * **** * * *



int main()

{
**** *** ****** ** * month, day, year, month2, day2, year2;


* *** ** * ** ** * *** * ** *** Date in m/d/yyyy * * **** *
** ** *** **** * ** * * ** *** *** *** * &month, &day, &year);


* ***** ** ** * **** ** * Date to be compared, same ** *** ** * ** **
* * * * * * * ** * * *** *** *** ** *** * ** &month2, &day2, *** ** * **


******* * ** * * * **** * ******* * month, day, year);
** ** ******** * ****** * *** *** * * * * * ** month2, day2, year2);


** ** ** * ** ***** * **** ********* * *******
*** * ** *** * **** * *** **** ** * ** ** **** ** ** * * *** * ** ** * ** * **** is earlier than * ** **** month, day, year, month2, day2, year2);
***** * *** * ** * ** * * * ** * * ** * * ** if * **** ***
*** * * * * ** * * * **** ** * ** * * *** ***** *** * * * **** *** * * ** * ** * ** * * * * is earlier than ****** * *** month2, day2, year2, month, day, year);
*** **** * ** *** ** * ** ****** ** ***** ** if (year==year2 * *** ** * ** ** ** *
**** * **** * **** * * * * *** *** ***** * ** * ** ** * * ***** * ** ** * * ** * **** **** is earlier than **** month, day, year, month2, day2, year2);
* **** ** ** * * ** * * **** *** *** ** if (year2==year ******* * * * * *
* * * ** ** ** ** * * * * * ** * * * ** *** ** ********** * **** * **** * ***** * * ***** * * * is earlier than * **** * month2, day2, year2, month, day, year);
* ** * * ** *** * * * *** ** **** * *** ** if (year==year2 ** * ** **** month==month2 ** ***** ** * ***
* * ** * ** * *** * ** * ** *** * * ** * * ** **** ** ***** *** ***** ***** ** ***** ** *** ** * is earlier than ** * ** *** month, day, year, month2, day2, year2);
** * * ** * * * **** * ** *** * ** * * * * if (year2==year * *** * * month2==month ** * * ** ** *** ** *
*** ** *** * **** *** * ** ** * * * *** * * *** * ** * * ***** * ** * ** * ***** * ** ** ** * * * is earlier than ***** month2, day2, year2, month, day, year);
*** * * * * ***** * ***** ** * * ** ** * ** *
****** **** * **** ** * * **** * * * ****** *** ** * * * *** ** ** * **** **** ** * *** * * ** * *


*** * * * ** ** * ** * * 0;

}
trả lời bởi (126 điểm)
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:162.158.152.203
©2016-2025

Những câu hỏi liên quan

0 thích 0 k thích
50 trả lời
[Exercise] Coding (C) - đã hỏi ngày 16 tháng 3 năm 2017 trong C
ID: 22973 - Xem được từ: Không giới hạn - Hiệu lực đến: Không giới hạn
| 5.1k đã xem
0 thích 0 k thích
82 trả lời
[Exercise] Coding (C) - đã hỏi ngày 9 tháng 3 năm 2017 trong C bởi thopd (12.1k điểm)
ID: 22674 - Xem được từ: Không giới hạn - Hiệu lực đến: Không giới hạn
| 7.2k đã xem
0 thích 0 k thích
111 trả lời
đã hỏi ngày 16 tháng 3 năm 2017 trong C bởi thopd (12.1k điểm) | 10.5k đã xem
12,783 câu hỏi
183,442 trả lời
172,219 bình luận
4,824 thành viên