本人新手一枚,闲得无聊写的聊天加密程序,解密程序稍后发。
#include#include #include #include using namespace std; string s; int x; int main() { printf("下面开始字符串加密程序n"); cin >> s; for(int i = 0; i < s.size(); i++) { x = (int)s[i]; x = ~x + 1; if(x < 32) printf("%d ", x); else printf("%c ", x); } return 0; }



