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);
开发者_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();
精彩评论