题解 1042: [编程入门]电报加密

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

isalpha()判断

摘要:解题思路:注意事项:参考代码:a = str(input())s = ''for i in a:    if i.isalpha():        t = chr(ord(i)+1)……

[编程入门]电报加密

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){      int i;      char a[1001];      ge……

[编程入门]电报加密

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char s[100]; gets(s); for(int i=0;s[i];i++){ if(s[i]>=……

1042: [编程入门]电报加密

摘要:#此题和上一题类似,也需要接收空格,同时还需要进行字母加密,难度稍高。 ```cpp #include #include #include using namespace std; /……

电报加密代码简单粗暴

摘要:解题思路:用for循环游历数组用if语句找到a~Z,由于z和Z不能直接加1变成a所以我们吧判断写成arr[i]>=&#39;a&#39;&&arr[i]<&#39;z&#39;,和arr[i]>=&#……

电报加密——解题

摘要:解题思路:此题较简单,即先输入一行字符串,然后将小写字母(a-y)加一,将z直接变为a。最后输出字符串。注意事项:改变字符串的过程应该注意先将z变为a,再将(a-y)加一,否则y也将变为a。参考代码:……

1042: [编程入门]电报加密

摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> void fun(char a[])//向后移动一位 {     for (int ……

[编程入门]电报加密

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char a[10];    gets(a);    for (int……