开发者

Caesar's cipher in VC#

开发者 https://www.devze.com 2023-01-02 10:32 出处:网络
#include<string.h> void main() { char name[50]; int i,j; printf(\"Enter the name:>\"); scanf(\"%s\",&name);
#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);
开发者_JAVA百科}

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. please help me out.


If you make a console application, you can do this:

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

精彩评论

暂无评论...
验证码 换一张
取 消