问题及代码:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
/*
Copyright(c)2017,CSDN学院行者-
All rights reserved.
文件名称:main.c
作者:乔帅
完成日期:2018年1月21日
版本号:v1.0
问题描述:M$pszi$y是嘛意思?
输入描述:一串字符
程序输出:字符的潜在意思
*/
int main()
{
char ch;
int n;
scanf("%d",&n);
while((ch=getchar())!='\n')
{
putchar(ch-n);
}
return 0;
}
运行结果:
知识点总结:
1.ascll码的熟练应用
2.各个字符之间的转化
学习心得:
需要知道几个特定的字符的ascll值,其他只需了解用的时候可以从ascll码表中查找