are you sure that you are not supposed to identify the character expression xxx@xxx.xxx?
Yes, I am supposed to identify that expression and (am assuming) use the
member function "str.find(str1,pos)" to identify the "@" symbol.
Since the "pos" is supposed to start the search at the beginning of the file, what happens when it finds the first "@" and identify the "xxx@xxx.xxx" for multiple email addresses?(Isn't the "find" function supposed to pick out the emails
and disregard everything else by identifying the beginning and end of the email?)
This is how I started that particular part
ofstream out("emails.txt");
string emails;
char search = "@";
int offset;
ifstream in("initial.txt");//file containing source code
while(!eof)
{
str.find(search, 0);//this is where am not sure about
out << search << endl;
}