凯撒加密术
#include <iostream>
using namespace std;
int main()
{
char c1 = 'C',c2 = 'h',c3 = 'i',c4 = 'n',c5 = 'a';
c1 += 4;//即c1=c1+4;
c2 += 4;
c3 += 4;
c4 += 4;
c5 += 4;
cout<<c1<<c2<<c3<<c4<<c5<<endl;
system("pause");
return 0;
}
凯撒加密术
#include <iostream>
using namespace std;
int main()
{
char c1 = 'C',c2 = 'h',c3 = 'i',c4 = 'n',c5 = 'a';
c1 += 4;//即c1=c1+4;
c2 += 4;
c3 += 4;
c4 += 4;
c5 += 4;
cout<<c1<<c2<<c3<<c4<<c5<<endl;
system("pause");
return 0;
}