31_字符数据与整数进行算数运算

来源:互联网 发布:360抢票软件 编辑:程序博客网 时间:2024/06/05 14:26
//时间:2012年9月25日16:52:58#include <iostream>using namespace std;int main(){char c1, c2;c1 = 'a';c2 = 'b';    c1 = c1 - 32;c2 = c2 - 32;cout<<c1<<' '<<c2<<endl;return 0;}/*在VC++6.0中运行的结果是:-----------------------A BPress any key to continue-----------------------*/

原创粉丝点击