I did not visit your page because you did not give me answer I know you are very busy and you have scoll or job. but I waited your answer 4-5days. as a result ı failed my course:(...
thennnn..
I turned backkk:) with my questionsss
I try to write calender program in C.bur there are some rules .I HAVE TO ENTER TWO DATE and program will calculate the how many days between these two date.butt condition is first date must before than the second date.so I did not provide this conditionnn....
calender
Page 1 of 12 Replies - 4419 Views - Last Post: 28 February 2006 - 04:46 PM
Replies To: calender
#2
Re: calender
Posted 28 February 2006 - 02:23 PM
the point of this website is not to do peoples homework for them, but to help them with whatever questions that they have...
feel free to post some of your code and the problems that you're having with it and we'll be happy to assist you
feel free to post some of your code and the problems that you're having with it and we'll be happy to assist you
#3
Re: calender
Posted 28 February 2006 - 04:46 PM
okey I write this part of my code to condition date1 is always earlier than date 2 which are entered from the user....
but I make a puzzle by using if else..
if (year1<year2)
{ printf("give another year number which is greater than the next");}
else
{return date;}
if ((year1==year2)&&(month1<month2)){{ return date;}
if(month1>month2)
{printf("give another month number which is greater than the next");}else if((month1==month2)&&(day2>day1))
return date;}
else if(day2<=day1)
{printf("give another day number which is greater than the next");}}
yes that 's it
but I make a puzzle by using if else..
if (year1<year2)
{ printf("give another year number which is greater than the next");}
else
{return date;}
if ((year1==year2)&&(month1<month2)){{ return date;}
if(month1>month2)
{printf("give another month number which is greater than the next");}else if((month1==month2)&&(day2>day1))
return date;}
else if(day2<=day1)
{printf("give another day number which is greater than the next");}}
yes that 's it
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|