PROJECT
TOPIC - BUS RESERVATION SYSTEM
Submitted to:
MISS ISHA BATRA
Submitted by:
GARIMA GOSWAMI
Roll. No.RA6002A32
Regd. No.11006081
component part A60002
C CODING
#include<stdio.h>
#include<conio.h>
#include<string.
h>
void main()
{
show *fp,*ft;
char another, prize;
struct bus
{
char name[40];
int age;
float nutrition;
};
struct bus e;
char passname[40];
long int recsize;
int count=0,seets,busno;
printf( acquiesce bus no);
fflush(stdin);
busno=getche();
switch(busno)
{
case 1:
{
fp=f ease up(bus.c,rb+);
if(fp==NULL)
{
fp=fopen(bus.c,wb+);
if(fp==NULL)
{
puts(cannot open file);
exit(1);
}
}
recsize=sizeof(e);
e.fare=225.00;
printf(npress 1 for reserv ur ticket);
printf(npress 2 for chek out secrete seets);
printf(npress 3 for modify ur ticket);
printf(npress 4 for cancle the ticket);
while(1)
{
printf(ur choice);
fflush(stdin);
choice=getche();
switch(choice)
{
case 1:
{
fseek(fp,0,SEEK_END);
another=y;...If you want to get a full essay, order it on our website: Ordercustompaper.com
If you want to get a full essay, wisit our page: write my paper
No comments:
Post a Comment