User Profile

Collapse

Profile Sidebar

Collapse
cjohns
cjohns
Last Activity: Nov 24 '07, 09:44 PM
Joined: Nov 24 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • cjohns
    replied to How to find how many days to someones bithday
    in C
    so would it look like this? i have yet to do the days in months. and how would i incorporate the bool variable into the program?

    [CODE=cpp]#include <iostream>
    using namespace std;

    int getdate (int& day, int& month, int& year);
    int currentdate (int&day, int& month, int& year);
    int getnumberofdays inmonth (int& month, int& year);
    bool isleapyear (int year);...
    See more | Go to post
    Last edited by Ganon11; Nov 24 '07, 11:59 PM. Reason: Please use the [CODE] tags provided.

    Leave a comment:


  • cjohns
    started a topic How to find how many days to someones bithday
    in C

    How to find how many days to someones bithday

    I am brand new to programing and am trying to write a C++ program that calculates how many days are left to a persons birthday. I need to make a function for the leap years, and to get number of days in a month, i have no idea how to do this. any help would be great..
    i am using windows op, with visual studios 2005
    this is what i have so far.

    [CODE=cpp]#include <iostream>
    using namespace std;
    ...
    See more | Go to post
    Last edited by Ganon11; Nov 24 '07, 07:47 PM. Reason: Please use the [CODE] tags provided.
No activity results to display
Show More
Working...