Forum: C++ May 3rd, 2007 |
| Replies: 15 Views: 4,250 Ok, finally made a few tweaks and get everything working correctly. Heres the working code.
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
bool isLeapYear(int... |
Forum: C++ May 3rd, 2007 |
| Replies: 15 Views: 4,250 I dont think so, because right now I am checking it with the calendar in my phone. It is getting May 2007 right, but when i try another value, like Sep 1986, it is off by one day. Here is the total... |
Forum: C++ May 3rd, 2007 |
| Replies: 15 Views: 4,250 ok so i tried changing it to:
int getTotalNoOfDays(int mo, int yr)
{
int j;
int totDays=0;
for (j=1800; j < yr; j++)
{ |
Forum: C++ May 3rd, 2007 |
| Replies: 15 Views: 4,250 How would I write it so that it doesnt keep calling the same month? would that be another loop? |
Forum: C++ May 3rd, 2007 |
| Replies: 15 Views: 4,250 ok, so do I have to check if the year is a leap year? when i add a year to the result? |
Forum: C++ May 2nd, 2007 |
| Replies: 15 Views: 4,250 Ok we have been creating this calendar in our intro to programming class for about a week or so, and right now I am stuck on getting the start day of each month. I was thinking it should be total... |