I was wondering if anyone here perhaps know how to traverse the indivdual chars in a string. I am writing a cpp file that finds email in any valid txt file and writes them to another file of the users choosing. To start my i have an if statement
for(int i = 0; i < meDeque.size(); i++)
if(myDeque[i] == '@')
and all the rest
the problem is when i compare the strings to a char character such as that @ symbol in single quates my compiler does not like it. Does anyone know the proper way to compare and traverse the individual char in the strings? Thank you.