#include <iostream> #include <string>

using namespace std;

inline int is_ASCII_code(const char word) { int ascii = int(word); return ascii; }

int main() { cin.tie(nullptr); ios_base::sync_with_stdio(false);

char word;
cin >> word;

cout << is_ASCII_code(word) << "\\\\n";

return 0;

}

  1. 문자열 인트형으로 변환시 아스키코드 출력 ‘A’ 아스키코드는 65