void searchByDestination(struct Flight *flights, int numFlights, char *destination) {
for (int i = 0; i < numFlights; i++) {
if (strcmp(flights[i].route, destination) == 0){
代码不完整,只能帮到这了
void searchByDestination(struct Flight *flights, int numFlights, char *destination) { //调用的方法
for (int i = 0; i < numFlights; i++) { //遍历所有的航班
if (strcmp(flights[i].route, destination) == 0) { //如果找到了匹配的目的地
没发完整。
不知道你这个问题是否已经解决, 如果还没有解决的话:(1)链式存储结构的优点
(2)链式存储结构的缺点
二.顺序表和链表的比较