Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. //Adding the date (if valid) to the array in a specific place in the array
  2. int Calendar::setDate(const MyDate &newDate, int num)
  3. {
  4. if ((num < 1) || (num > 30))
  5. return -1;
  6.  
  7. m_myDate[num - 1] = new MyDate;
  8. *m_myDate[num - 1] = newDate;
  9.  
  10. m_cnt++;
  11.  
  12. return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement