字符类型是整型类型的一种,将其转换成int类型,然后再输出十六进制形式即可。下面是一个示例程序。 #include using namespace std;int main(){ char str_test[] = "hello world\n";int limit = strlen(str_test);for (int inx=0; inx!=limit; +...