okay, here's my main...messy, I know, I've tried so much stuff to get it to run:
Code:void main() { int i = 0; ifstream fin("EmailTest.txt"); char s[300]; char* str = s; MyString String(str); while( !fin.eof ) { fin >> str; cout << str; Email anEmail( str ); if( anEmail.IsValid() ) cout << 1 << endl; else cout << 0 << endl; } }
Here's what it needs to do: In your main() make a loop that would read file stream with email addresses and output file stream with 0 or 1 strings one per line.
I have tried so much stuff, and I can't get it to work. I have no idea how to do it...especially since it's a custom string class...
EDIT: I know the file output isn't there...I'm trying to get the input to work first...



LinkBack URL
About LinkBacks



CornedBee