请问 这样做对吗?
#include < iostream >
using namespace std;
void main()
{
char a='A',b='B';
int ascii_1=53,ascii_2=54;//ASCII码中的5和6
cout<<"字符输出:"<<(int)a<<","<<(int)b<< endl;
cout<<"ASCII码输出:"<<(char)ascii_1<<(char)ascii_2<<",";
cout<<(char)ascii_1<<(char)ascii_2<< endl;
}