\t\t大小写字母的转换

来源:互联网 发布:阿里云系统怎么root 编辑:程序博客网 时间:2024/06/06 04:02

#include<stdio.h>
#include<math.h>
const double PI=acos(-1.0),e=exp(1.0);

int main()
{
printf("%f %f\n",PI,e);
char temp;
while (1)
{
   scanf("%c",&temp);
   temp=char(temp&'_');
   printf("%c",temp);

   char T='A';
   T=char(T|' ');
   printf("%c\n",T);
}
    return 0;
}

昨天仔细地分析了一下,的确是这样子的,只是这种思想从来没有想过,哎,头脑不够用呀!  大小写字母的转换 - 哼哈二将 - 尚武思文

0 0