Practical Numerical C Programming by Philip Joyce

Practical Numerical C Programming by Philip Joyce

Author:Philip Joyce
Language: eng
Format: epub
ISBN: 9781484261286
Publisher: Apress


for (i = 0;i < 17;i++)

{

ret=strcmp(fltno,st[i].flight_no);

if(ret == 0)

{

strcpy(st[i].sch_arrival_time,new_sch_arrival_time);

printf("\nstored sched is %s",st[i].sch_arrival_time);

printf("\n Flight number is %s",&fltno);

printf("\n struct Flight number is %s",st[i].flight_no);

}

}

break;

case 2:

/* Change expected arrival time */

printf("\nenter the new exp \n");

scanf("%s", new_exp_arrival_time);

printf("\nnew exp is %s",new_exp_arrival_time);

for (i = 0;i < 17;i++)

{

ret=strcmp(fltno,st[i].flight_no);

if(ret == 0)

{

strcpy(st[i].exp_arrival_time,new_exp_arrival_time);

printf("\nstored exp is %s",st[i].exp_arrival_time);

printf("\n Flight number is %s",&fltno);

printf("\n struct Flight number is %s",st[i].flight_no);

}

}

break;

case 3:

/* Change airport of origin */

printf("\nenter the new origin \n");

scanf("%s", new_origin);

printf("\nnew origin is %s",new_origin);

for (i = 0;i < 17;i++)

{

ret=strcmp(fltno,st[i].flight_no);

if(ret == 0)

{

strcpy(st[i].origin,new_origin);

printf("\nstored origin is %s",st[i].origin);

printf("\n Flight number is %s",&fltno);

printf("\n struct Flight number is %s",st[i].flight_no);

}

}

break;

case 4:

/* Add remarks */



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.