Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. //Using the firstFree() function to find the first free place in array.
  2. //then uses the setDate() function to insert the copy of that date into array.
  3. int Calendar::insert(const MyDate &newDate)
  4. {
  5. int pos = firstFree();
  6. if (pos == -1)
  7. return -1;
  8. setDate(newDate, pos);
  9. return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement