code.txt
来自「Caesar cipher in C++」· 文本 代码 · 共 27 行
TXT
27 行
#include <iostream>
#include <string>
using namespace std;
int main()
{
string str1;
int i = 0;
int shift;
int crypted;
int n;
cout << "What do you want your password to be?\n";
cin >> str1;
cout << "What do you want your shift number to be?\n";
cin >> shift;
while(i<str1.length()){
str1[i] = int(str1[i]) + shift;
i++;
}
cout << "your password is: "<<str1;
cin>>n;
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?