當前位置:編程學習大全網 - 電腦編程 - C++編程問題求解

C++編程問題求解

# include & ltstdio.h & gt

int main()

{

char cypher[4]=“愛”,代碼[4];

const int N = 26

int i=0,n;

printf("請輸入密鑰:\ n ");

scanf("%d ",& ampn);

printf("原詞為%s \n ",cypher);

for(;我& lt4;i++)

{

if(cypher[I]& gt;z’)

cypher[I]=((cypher[I]-' a ')+N)% N+' a ';

其他

cypher[I]=((cypher[I]-' A ')+N)% N+' A ';

}

printf((“加密的字是%s,cypher);

返回0;

}

  • 上一篇:中國科學技術大學軟件工程研究生好考嗎
  • 下一篇:如何安裝玩具吉他
  • copyright 2024編程學習大全網