Thank you for your reply. It is very useful. But the real code is bigger than that and I have to use scanf in the begining:
/*********************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 100
void print_menu(int n);
void...
This is a portion of a program:
/******************************************************/
if((fp = fopen("Taxi Information.txt", "w"))==NULL) {
printf("Cannot open file.\n");
exit(1)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.