void encode(char * buff)
{
char *p=buff;
while(*p)
{
*p=255-*p;
p++;
}
}
#include
using namespace std;
void encode(char * buff)
{
char *p=buff;
while(*p)
{
*p=255-*p;
p++;
}
}
void main()
{
char buffer[256];
cout<<"请输入待加密串";
cin>>buffer;
encode(buffer);
cout<<"加密后结果为:"<