CS计算机代考程序代写 /*

/*
* The main program for the ATM.
*
* You are free to change this as necessary.
*/

#include “atm.h”
#include
#include

static const char prompt[] = “ATM: “;

int main()
{
char user_input[1000];

ATM *atm = atm_create();

printf(“%s”, prompt);
fflush(stdout);

while (fgets(user_input, 10000,stdin) != NULL)
{
atm_process_command(atm, user_input);
printf(“%s”, prompt);
fflush(stdout);
}
return EXIT_SUCCESS;
}