Hi All,
The problem is that i have to read in a text file which is something like:
ASt BSt
BSt WSt
BSt YeSt
BSt KrSt
MSt KrSt
they are possible street intersections from ASt to MSt. I have to output the list of streets in order to reach MSt from ASt like:
ASt
BSt
KrSt
MSt
This is to be done using Breadth First Search.
The problem i am facing is that, i have stored the intersections in a string vector, but i am not able to compare two string vector elements.
Can anyone kindly help me out here. I already tried the == and compare function.