Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int decrease_count( int count )
- {
- if (available_resources < count )
- return −1;
- else
- available_resources −= count ;
- return 0;
- }
- intincrease_count( int count )
- {
- available_resources += count ;
- return 0 ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement