Include
Include
h>
#include <string.h>
#include <stdlib.h>
struct thongtin {
char machuyenbay[20];
char hanghangkhong[20];
char diemdi[20];
char diemden[20];
char tgkhoihanh[20];
float giave;
};
typedef struct thongtin tt;
int main() {
tt ds[100];
int n;
nhapDanhSach(ds, &n);
return 0;
}
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct {
char maCB[11];
char hang[16];
char diemDi[16];
char diemDen[16];
char tgKhoiHanh[20];
float giaVe;
} ChuyenBay;
int main() {
ChuyenBay ds[100];
int n;
nhapDanhSach(ds, &n);
float b, c;
printf("\nNhap khoang gia b den c de tim chuyen bay:\n");
printf("b = "); scanf("%f", &b);
printf("c = "); scanf("%f", &c);
timTheoGia(ds, n, b, c);
char hangTK[16];
printf("\nNhap ten hang de tim chuyen bay: ");
scanf("%s", hangTK);
timTheoHang(ds, n, hangTK);
return 0;
}