Ok, I have a problem for some reason, and I've tried many different solutions... still, things aren't working correctly... Objectives: Generate a list of the files (No problem) | Store the list of...
Type: Posts; User: anthrax759
Ok, I have a problem for some reason, and I've tried many different solutions... still, things aren't working correctly... Objectives: Generate a list of the files (No problem) | Store the list of...
Try working off of something like this...
cout << "Enter the sentence you wish to have encrypted." << endl;
char x[256];
char str[51];
cin >> x;
cout << endl;
if(strlen(x)>50){...
Don't worry 'bout it... happens to the best of us... ;) Also, you're not setting anything to your array 'sentence'... regardless of what they enter, without something to catch the input, you'll get...
sentence(A) is trying to call sentence() as a function. You want to use it as an array, so you'd use
sentence[A]
Good point. I didn't read fully I guess.. </LIFE> :(
To correct myself, just use:
rename(old filename, new filename);
remove(filename);
the filenames are char's.
Try View -> Toolbox ;)
-AnTh
When in doubt, check MSDN... ;)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_mfc_cfile.3a3a.rename.asp...