3016 查找ASCII编码

#include<bits/stdc++.h>
#define f(i,s,e) for(int i = s; i <= e; i++)
#define ll long long
using namespace std;
const int N = 1e3+10,inf = 0x3f3f3f3f;

int main()
{
    char c;
    cin >> c;
    cout << int(c); //int强制把字符c转成对应的数字 
    return 0;
}

 

posted @ 2024-07-03 16:25  CRt0729  阅读(34)  评论(0)    收藏  举报