Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Using the firstFree() function to find the first free place in array.
- //then uses the setDate() function to insert the copy of that date into array.
- int Calendar::insert(const MyDate &newDate)
- {
- int pos = firstFree();
- if (pos == -1)
- return -1;
- setDate(newDate, pos);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement