Search Results

Showing results 1 to 6 of 6
Search took 0.00 seconds.
Search: Posts Made By: cellus205 ; Forum: C++ and child forums
Forum: C++ May 3rd, 2007
Replies: 15
Solved: factorials
Views: 4,250
Posted By cellus205
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
Solved: factorials
Views: 4,250
Posted By cellus205
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
Solved: factorials
Views: 4,250
Posted By cellus205
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
Solved: factorials
Views: 4,250
Posted By cellus205
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
Solved: factorials
Views: 4,250
Posted By cellus205
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
Solved: factorials
Views: 4,250
Posted By cellus205
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...
Showing results 1 to 6 of 6

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC