C++随笔【智能输出】
来源:互联网 发布:海岛奇兵能量神像数据 编辑:程序博客网 时间:2024/05/16 23:47
//// 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
阅读全文