C++ Programming
10-05-2009, 05:32 AM
Hi, just a starter with c++. Just following along a search program but cant understand this statementhttp://www.barakasoft.com/script/Forums/Images/smiley_frown.gif
#
for(i=0;i
{
if(adj[start][i] && !visited[i])
{
q[++rear]=i;
visited[i]=1;
}
}
What is this if statement comparing ? I cant understand as there is no equal to or any other arithmatic sign to evaluate the arrays. Sorry for being a noob.
Mike
#
for(i=0;i
{
if(adj[start][i] && !visited[i])
{
q[++rear]=i;
visited[i]=1;
}
}
What is this if statement comparing ? I cant understand as there is no equal to or any other arithmatic sign to evaluate the arrays. Sorry for being a noob.
Mike