Okay, to do that you need instructons from a file so that your program knows how to unscramble.
If not, this would work:
Loop it to switch every two letters. For an example:
Code:
int i;
char storage;
for(i = 1; i < FILE_SIZE; i = i + 2)
{
if(((FileBuffer[i] == ' ') || (FileBuffer[i] == '\0')) || ((FileBuffer[i - 1] == ' ') || (FileBuffer[i - 1] == '\0')))
continue;
storage = FileBuffer[i] + 0;
FileBuffer[i] = FileBuffer[i - 1] + 0;
FileBuffer[i - 1] = storage + 0;
}
It might need a little more help but that should get you started.
So now this:
noe wto htere ofru ifev isx esevn iehgt inen ten
Would look like this:
one two three four five six seven eight nine ten
Hope that helps, August.