-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
32 lines (29 loc) · 781 Bytes
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <stdio.h>
#include <Find.h>
#include <xcm.h>
#include <conio.h>
int main(){
int i, j, n;
char source[10], dest[10];
int **p=getGraph();
char **stations = getStations();
printWC();
//do{
printf("\nEnter first two letters of your source station :\n");
fflush(NULL);
gets(source);
findSources(stations, source);
printf("Enter your source station number:\n");
scanf("%d", &n);
setSource(n);
printf("Enter first two letters of your destination station :\n");
gets(dest);
gets(dest);
findDests(stations, dest);
printf("Enter your source station number:\n");
scanf("%d", &n);
setDest(n);
routeIT(p);
//}while();
return 0;
}