//
// main.cpp
// cpplearn1
//
// Created by myhaspl on 2017/12/3.
// Copyright © 2017年 myhaspl@myhaspl.com. All rights reserved.
//
#include <iostream>
using namespace std;
int main(int argc, const char * argv[]) {
// insert code here...
char x1;
int x2;
x1='c';
x2=x1;
cout<<"x1:"<<x2<<endl;
cout<<"x2:";
cout.put(x1);
cout<<endl;
return 0;
}
x1:99
x2:c
Program ended with exit code: 0