第十周项目二破译密码

来源:互联网 发布:威士忌酒杯 知乎 编辑:程序博客网 时间:2024/05/22 04:53
*Copyright (c) 2014, 烟台大学计算机学院           *All rights reserved.           *文件名称:test.cpp           *作者:于凯           *完成日期:2014年 11 月4日           *版本号:v1.0           *           *问题描述:          *输入描述:           *程序输出:        #include <iostream>  #include <cstdio>  using namespace std;    int main()  {      int i;      char ch;      while ((ch=getchar())!='\n')      {          for(i=1; i<=9; i++)          {              putchar(ch-i);          cout<<" ";          }          cout<<endl;      }      return 0;  }

运行结果:


0 0
原创粉丝点击