求足彩高手的解答解答

求高手解答:字符串异或加密,解密不正常,解决办法 - C语言当前位置:& &&&求高手解答:字符串异或加密,解密不正常,解决办法求高手解答:字符串异或加密,解密不正常,解决办法&&网友分享于:&&浏览:174次求高手解答:字符串异或加密,解密不正常,我是想手动输入2个字符串,并且在每个字符串前面加上标志'a'和'b'然后进行异或'a'加密,存放到磁盘中。最后是从此盘中读取到内存中,并在内存中异或'a'进行解密。问题是:解密后显示的内容不正确。还是乱码。[code=C/C++][/code] #define
char m_a[len]={0};
fout.open(&aa.dat&,ios::out);
this-&GetDlgItemText(IDC_EDIT1,m_a,len);
// fout&&'a'&&m_a;
//用这个的时候是正常的,读取都正常。其中的'a'是用来做标记的。//异或加密*********************************** for(int ia=0;ia&ia++) {
m_a[ia]=(m_a[ia])^('a'); }
fout&&(('a')^('a'))&&m_a;//****************************************//****************************************//**************************************** //****************************************** char str[200]={0};
ifstream fin(filename);
//从文件中读取乱码 fin&&//异或解密******************************* for(int i2=0;i2&200;i2++)
//异或,解密乱码 {
str[i2]=str[i2]^('a');
}::AfxMessageBox(str);
//解密后显示------解决方案--------------------
探讨想问下,解密时采用异或是对的吗?
12345678910
12345678910
12345678910 上一篇:下一篇:文章评论相关解决方案 12345678910 Copyright & &&版权所有The page is temporarily unavailable
nginx error!
The page you are looking for is temporarily unavailable.
Please try again later.
Website Administrator
Something has triggered an error on your
This is the default error page for
nginx that is distributed with
It is located
/usr/share/nginx/html/50x.html
You should customize this error page for your own
site or edit the error_page directive in
the nginx configuration file
/etc/nginx/nginx.conf.求高手解答 英语作文根据下列提示,写一篇不少于60词的作文 1.我家附近有一家叫明星购物的商场
2.购物商场共有六层,里面有许多店铺,像餐馆、家电商场、书店、服装店、体育用品商店等。
3.早上九点钟开始营业,晚上十点关门。...4.每天有大批的顾客。
There is a shopping mall called Star Shopping Mall near my home. The mall is very big. There are six floors in all. There are many shops in the mall, such as: a restaurant, a fast food restaurant, an ...
为您推荐:
扫描下载二维码}

我要回帖

更多关于 求人解答说 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信