
本人新手一枚,闲得无聊写的聊天加密程序,解密程序稍后发。
#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; }
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)