Notes
This function is in beta test. Please help improve it in the issues
here.
Your Answer
Welcome to the library management system, please type your commands. > book1 added to the system. > book12 added to the system. > book123 added to the system. > book1 added to the system. > book5 added to the system. > name1 added to the system. > name2 added to the system. > name3 added to the system. > 0001 book1 on shelf 0012 book12 on shelf 0123 book123 on shelf 1234 book1 on shelf 12345 book5 on shelf > 0001 name1 0022 name2 0333 name3 > 0123 book123 on shelf > 0001 book1 on shelf 1234 book1 on shelf > Success! book12 is borrowed by name1. > Fail! The book was borrowed by another customer. > 0001 book1 on shelf > 0012 book12 borrowed > 0001 book1 on shelf > 0123 book123 on shelf > Fail! The book was borrowed by another customer. > Success! book123 is borrowed by name2. > 0001 book1 on shelf 1234 book1 on shelf > 0012 book12 borrowed > 0123 book123 borrowed > Success! book1 is borrowed by name1. > 0001 book1 borrowed 0012 book12 borrowed 0123 book123 borrowed 1234 book1 on shelf 12345 book5
JOJ Answer
Welcome to the library management system, please type your commands. > book1 added to the system. > book12 added to the system. > book123 added to the system. > book1 added to the system. > book5 added to the system. > name1 added to the system. > name2 added to the system. > name3 added to the system. > 0001 book1 on shelf 0012 book12 on shelf 0123 book123 on shelf 1234 book1 on shelf 12345 book5 on shelf > 0001 name1 0022 name2 0333 name3 > 0123 book123 on shelf > 0001 book1 on shelf 1234 book1 on shelf > Success! book12 is borrowed by name1. > Fail! The book was borrowed by another customer. > 0001 book1 on shelf > 0012 book12 borrowed > 0001 book1 on shelf > 0123 book123 on shelf > Fail! The book was borrowed by another customer. > Success! book123 is borrowed by name2. > 0001 book1 on shelf 1234 book1 on shelf > 0012 book12 borrowed > 0123 book123 borrowed > Success! book1 is borrowed by name1. > 0001 book1 borrowed 0012 book12 borrowed 0123 book123 borrowed 1234 book1 on shelf 12345 book5 on shelf > Suc