简体   繁体   English

凯撒的VC#密码

[英]Caesar's cipher in VC#

#include<string.h>
void main()
{
    char name[50];
    int i,j;
    printf("Enter the name:>");
    scanf("%s",&name);
    j=strlen(name);
    for(i=0;i<j;i++)
{
    name[i] = name[i]+3;
}
    printf("ENCRYTED NAME=>%s",name);
}

This a caesar's cipher in c programming friends i want use this same thing in VC# where i will get input from user through textbox. 我想在C编程朋友中使用这个凯撒密码,因为我想在VC#中使用相同的功能,在这里我将通过文本框从用户那里获得输入。 please help me out. 请帮帮我。

If you make a console application, you can do this: 如果创建控制台应用程序,则可以执行以下操作:

Console.Write("Enter the name:>");
string name = Console.ReadLine();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM