# Answer to Question #37430 in C++ for Ajinkya Krishna

Question #37430

Creating an adjacency matrix of the form

FRA JFK LHR ROC SYR YYZ

FRA 600

JFK 540 500 55

LHR 550

ROC 50 20

SYR 45

YYZ 480

The input is to be taken from an input file that contains:

ROC JFK 50

ROC YYZ 20

SYR JFK 45

JFK ROC 55

JFK LHR 500

YYZ LHR 480

JFK FRA 540

FRA JFK 600

LHR JFK 550

Note: Use only STL class [ vector ].

FRA JFK LHR ROC SYR YYZ

FRA 600

JFK 540 500 55

LHR 550

ROC 50 20

SYR 45

YYZ 480

The input is to be taken from an input file that contains:

ROC JFK 50

ROC YYZ 20

SYR JFK 45

JFK ROC 55

JFK LHR 500

YYZ LHR 480

JFK FRA 540

FRA JFK 600

LHR JFK 550

Note: Use only STL class [ vector ].

Expert's answer

## Comments

## Leave a comment