?? code.txt
字號:
#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;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -