I added a print statement but it shows the same value as the final print statement in main.
I also added that check = scanf...
i made it so that if check != "%d" exit.
I dont know why this...
Type: Posts; User: asirep
I added a print statement but it shows the same value as the final print statement in main.
I also added that check = scanf...
i made it so that if check != "%d" exit.
I dont know why this...
how do i do that?
I've made everytinh int all the way through but it doesnt work...
input
1 - add record
2 - change record
3 - Delete a record
4 - Quit
Adding parenthesis' doesnt work.
Any other ideas?
How can i check the return value of scanf?
Please look at my code:
#include <stdio.h>
#include <stdlib.h>
int get_menu_choice (void);
int main ()
{
int choice;