could anyone pls show me the codes of this c++ program.T_T.im only just a newbie and ive tried 5 days to complete this program but i couldnt get it....
please show me the codes....
C++ calendar program that requires to input month number, number of days and the year?
Fair warning: I didn't check this for errors.
I leave it up to you to write the functions. If you know what you're doing, it'll be extremely easy. If you're trying to get me to do your homework for you, well, sorry pal.
months = getMonthNumber();
year = getYearNumber();
firstDay = getFirstDay();
printListOfDays();
int dayCounter = (-6) + firstDay;
int loopAtWeek = 0;
while (dayCounter %26lt; getDaysInMonth(months,year) )
{
loopAtWeek++;
if (dayCounter %26gt; 0)
{
cout %26lt;%26lt; dayCounter %26lt;%26lt; " ";
}
if (loopAtWeek %26gt; 7)
{
cout %26lt;%26lt; endl;
}
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment