题解 | #字符转ASCII码#
字符转ASCII码
https://www.nowcoder.com/practice/93f4d05a02d9468db424ed4316bfc8fd
#include <cstdio> #include <iostream> using namespace std; int main() { char a; scanf("%c",&a); int x = a; printf("%d",x); } // 64 位输出请用 printf("%lld")
字符转ASCII码
https://www.nowcoder.com/practice/93f4d05a02d9468db424ed4316bfc8fd
#include <cstdio> #include <iostream> using namespace std; int main() { char a; scanf("%c",&a); int x = a; printf("%d",x); } // 64 位输出请用 printf("%lld")
相关推荐