/**
* program:
* Authors: hao.l
* Date: 2016/10/24
* Modify by:
*
* Desc:
* 字符进行数值运算
*/
#include <iostream>
#include <string>
using namespace std;
int main(){
int i,j;
i='A'; //65
j='B'; //66
cout<<i<<' '<<j<<endl;
cout<<"i+j="<<i+j<<endl; //131
char c1=97;
char c2=65;
cout<<c1<<' '<<c2<<endl;
return 0;
}
字符进行数值运算
最新推荐文章于 2022-04-16 10:00:00 发布