[ad_1]
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
[ad_2]
solved How to check if the first element of an vector
[ad_1]
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
[ad_2]
solved How to check if the first element of an vector