You can use
if( atom[k][0] == '\"' )
Exception handled version (.at()
throws an error if index is out of bounds):
if( atom[k].at(0) == '\"' )
2
solved How to check if the first element of an vector
You can use
if( atom[k][0] == '\"' )
Exception handled version (.at()
throws an error if index is out of bounds):
if( atom[k].at(0) == '\"' )
2
solved How to check if the first element of an vector