Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
与えられた文字をその名前に変換する関数がWindowsにあるのだろうかと思います。
cout << SomeFun('\ t'); cout << SomeFun(''); cout << SomeFun('、');
出力は次のとおりです。TABSPACOMMA
Win32 API、C ++標準ライブラリ、またはC標準ライブラリのいずれにもそのような関数はありませんが、ルックアップテーブルを使用して結果を返す関数を自分で簡単に作成できます。