using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace move
{
class Program
{
#region//定义移动任意位函数
static void move(string s,int n)
{
int m = n % 26;
char[] move = new char[s.Length];
string s1 = "abcdefghijklmnopqrstuvwxyz";
for (int i = 0; i < s.Length;i++ )
{
if (s[

这是一个使用C#编写的凯撒加密算法改进版,实现了字符串任意位数的移动。程序通过读取用户输入的明文和移动位数,进行加密操作。加密过程包括检查字符范围、计算新的字符位置,并输出加密后的结果。
最低0.47元/天 解锁文章
323

被折叠的 条评论
为什么被折叠?



