cyprus106
Programmer
- Apr 30, 2001
- 654
Alright... I want to run through a 'for' loop and replace every character in my buffer, called 'mybuf[256]', with a 'Z', output that to my screen (which is no problem), then replace the 'Z' character with the character that I just took out. (Basically, save whatever character was just overwritten in the buffer and put it back in)
So this would be an example:
CYPRUS106 1
ZYPRUS106 2
CZPRUS106 3
CYZRUS106 4
CYPZUS106 5
CYPRZS106 6
and so on...
I'm just lowly quality assurance and haven't worked with C++ or C code in a long time. My logic's off in my for loop and I don't know how to fix it. Just so I don't get flamed, this isn't homework. I'm trying to run a partial record rewrite test against a server to be sure this new function works...
Cyprus
So this would be an example:
CYPRUS106 1
ZYPRUS106 2
CZPRUS106 3
CYZRUS106 4
CYPZUS106 5
CYPRZS106 6
and so on...
I'm just lowly quality assurance and haven't worked with C++ or C code in a long time. My logic's off in my for loop and I don't know how to fix it. Just so I don't get flamed, this isn't homework. I'm trying to run a partial record rewrite test against a server to be sure this new function works...
Cyprus