I have this problem I am trying to find the v in the iteration now for some reason the iteration skips index 0.

I know theirs a logical solution to this but I'm a bit stuck any help would be appreciated

string line = "v 0 2.928242206573486 0"; for( unsigned int i = 0; i < line.length(); i++ ) { if( num = line.find( "v", i ) ) { if( i == num ) { cout << "V Numbers: " << i << endl; } } }