I have to translate a C++ source code into Java. Unfortunately, I've never been taught C++. Most of it is fairly easy, but I could use a bit of help.
void DepthFirstSearch(HeadNode *V[MaxCities], bool *Visited, int Start)
{
//display each cited as it is visited
cout << endl << V[Start]->City;
//mark city as visited
Visited[Start] = true;
//continue depth first search
CityNode *C;
int NewStart;
C = V[Start]->FirstCity;
while(C != NULL){
NewStart = C->Vertex;
if(!Visited[NewStart])
DepthFirstSearch(V,Visited,NewStart);
C = C->NextCity;
}//end while
}//end DepthFirstSearch
The line:
cout << end1 << V[Start]->City;
is particularly confusing. Any help?