Question
Asked by:
bobbyboucher
bobbyboucher
Rating : No Rating
Questions Asked: 37
Tutorials Posted: 0
 

$7.00 Simple Class C++

Q:
Please see attached.
 
Attachments:
Class.pdf (18K)


   
   
   
   
 
Available Tutorials to this Question
Posted by:
rainman
rainman
Rating (40): A+
Questions Asked: 2
Tutorials Posted: 174, earned $906.64
 

$7.00 Simple C++ Date Class Tutorial, Source Included. Everything Asked, Commented Compiled Tested Works

  • This tutorial was purchased 1 time and hasn't been rated yet.
  • Posted on Mar 16, 2009 at 1:10:37PM
A:
Preview: ... void addDays(int days);<br><br> void displayDate();<br>};<br><br>Date::Date(int m, int d, int y)<br>{<br> setMonth(m);<br> setDay(d);<br> setYear(y);<br>}<br><br>int Date::getMonth()<br>{<br> return month;<br>}<br><br>int Date::getDay()<br>{<br> return day;<br>}<br><br>int Date::getYear()<br>{<br> return year;<br>}<br><br>void Date::setMonth(int m)<br>{<br> //if m is less than 1 or greater than 12<br> if ((m < 1) || (m > 12))<br> month = 1;<br> else<br> month = m;<br>}<br><br> ...

The full tutorial is about 683 words long plus attachments.

Attachments:
main.cpp (2K) (Preview)
   
Join Now or Log In
Get Tutoring
Get Paid
Academic Honesty