Hello. I was making a command line xor encryption tool (mainly for fun), and I did most of it pretty good. But when I compile it (without any errors or warnings), and then run it with the nessesary arguments, it throws a invalid page fault at me. :(
Well here is a snippet of the code (a bit large to post the entire thing...):
Now what do I do? :p
cout << "\nThe correct syntax is: <filename> <password> [--decrypt]\n";
int main(int argc, char *argv)
if((argc < 2) || (argc > 3))
while( i < argc )
fstream FileD(argv, ios::in | ios::out | ios::nocreate);
fstream FileE(argv, ios::in | ios::out | ios::nocreate);
I'm thinking it has something to do with the while() loop, but I can't be sure on that.
Well, thanks for your help.