I need help fixing my switch case for it to be able to get a user input, accept it and make it work with the function i have available. But it is in C language not C++
while (running){
printf( "What would you like to do?\n") ;
printf( "1: Borrow\n");
printf( "2: Return\n");
printf( "3: Search\n");
printf( "4: Calculate overdue amount\n");
printf( "5: exit\n");
scanf("%d", &user_input);
switch(user_input)
{
case 1 :
{char name[20];
printf( "Enter name of book: ");
gets(name);
Borrow(name);
break;
}
1
Expert's answer
2012-11-12T08:29:47-0500
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment