#include <iostream> using namespace std; int main() { char x; cin>>x; cout<<(int)x; } // 64 位输出请用 printf("%lld")
不用int!!!不用printf!!!只要一个强制类型转换!!!