int 型数字 转 ASSIC码对应的字符

示例1

输入

复制

10
73 32 76 79 86 69 32 89 79 85

输出

复制

I LOVE YOU
/***************************************************************
     File Name: test_11.cpp
     Created Time: 三 12/ 5 15:25:27 2018
 **************************************************************/
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
const int maxn = 1e2+10;

int main()
{
  int n;
  cin >> n;
  int t;
  for(int i=0;i<n;i++){
    scanf("%d",&t);
    char ans = t;
    printf("%c",ans);
  }
  return 0;
}

猜你喜欢

转载自blog.csdn.net/a_lazy_Rabbit/article/details/84838432